Skip to content

Instantly share code, notes, and snippets.

@GaborWnuk
Created August 1, 2018 16:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save GaborWnuk/87f17972b2edb72040505f1d7acce0bb to your computer and use it in GitHub Desktop.
Save GaborWnuk/87f17972b2edb72040505f1d7acce0bb to your computer and use it in GitHub Desktop.
FancyViewManager.kt for React Native
package pl.wp.wdi
// (...)
class FancyViewManager: SimpleViewManager<View>() {
override fun getName(): String {
return "FancyViewManager"
}
override fun createViewInstance(reactContext: ThemedReactContext?): View {
// (...)
}
@ReactProp(text="hello")
fun setGif(view: View, text: String)
Log.d("TAG", text);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment