![]() The following type of values are currently supported (in Java): boolean, int, float, double, String, Boolean, Integer, ReadableArray, ReadableMap. Property type sent to JS is determined automatically based on the type of value argument of the setter. return type should be void in Java or Unit in Kotlin). Setter should be public and not return a value (i.e. Properties that are to be reflected in JavaScript needs to be exposed as setter method annotated with (or Setter method should take view to be updated (of the current view type) as a first argument and property value as a second argument. Expose view property setters using (or annotation ![]() Name returned by getName is used to reference the native view type from JavaScript.ģ. ReactImageView is the type of object managed by the manager, this will be the custom native view. In this example we create view manager class ReactImageManager that extends SimpleViewManager of type ReactImageView.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |