measure
THIS MEASURE METHOD IS EXPERIMENTAL, MOST LIKELY YOU ARE LOOKING TO USE THE OTHER OVERLOAD INSTEAD: measure
Subclasses can override this method to implement custom measure functions for the ViewManager
Return
result of calculation of layout for the arguments received as a parameter.
Parameters
com.facebook.react.bridge.ReactContext used for the view.
MapBuffer containing "local data" defined in C++
MapBuffer containing JS props
MapBuffer containing state defined in C++
width of the view (usually zero)
widthMode used during calculation of layout
height of the view (usually zero)
widthMode used during calculation of layout
array containing 2x times the amount of attachments of the view. An attachment represents the position of an inline view that needs to be rendered inside a component and it requires the content of the parent view in order to be positioned. This array is meant to be used by the platform to RETURN the position of each attachment, as a result of the calculation of layout. (e.g. this array is used to measure inlineViews that are rendered inside Text components). On most of the components this array will be contain a null value.
Even values will represent the TOP of each attachment, Odd values represent the LEFT of each attachment.