React Prop Group
Use this annotation to annotate group of properties of native views that should be exposed to JS. This annotation should only be used for setter methods of subclasses of . It's a batched version of ReactProp annotation (please see documentation of ReactProp for more details about how this annotation can be used).
This annotation is meant to be used for a group of similar properties. That's why it support only a set of properties of the same type. A good example is supporting "border", where we have 7 variations of that property ("borderLeft", "borderHorizontal", etc.) and very similar code for handling each of those.
Each annotated method should return void
and take exactly three arguments: first being a view instance to be updated, second should be of type int and will represent index in the group of the property being updated. Last, third argument represent the value that should be set.
Currently only int
, float
, double
and String value types are supported.
In case when property has been removed from the corresponding react component annotated setter will be called and default value will be provided as a value parameter. Default value can be customize using defaultInt or defaultFloat in the case when property is of one of primitive types. In case when String is the property type null
value will be provided as a default.
Functions
double
.float
.int
.long
.