measure

open fun measure(@NonNull context: ReactContext, @NonNull componentName: String, @NonNull localData: ReadableMap, @NonNull props: ReadableMap, @NonNull state: ReadableMap, width: Float, @NonNull widthMode: YogaMeasureMode, height: Float, @NonNull heightMode: YogaMeasureMode, @Nullable attachmentsPositions: Array<Float>): Long

Measure a component, given localData, props, state, and measurement information. This needs to remain here for now - and not in SurfaceMountingManager - because sometimes measures are made outside of the context of a Surface; especially from C++ before StartSurface is called.

Return

Parameters

context
componentName
localData
props
state
width
widthMode
height
heightMode
attachmentsPositions