Created
August 1, 2018 16:16
-
-
Save GaborWnuk/87f17972b2edb72040505f1d7acce0bb to your computer and use it in GitHub Desktop.
FancyViewManager.kt for React Native
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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