Namespaces
measureNativeView
function measureNativeView(
nativeView: any,
width: number,
widthMode: number,
height: number,
heightMode: number): {
height: number;
width: number;
};Defined in: utils/layout-helper/index.d.ts:82
Converts device pixels to device independent pixes and measure the nativeView. Returns the desired size of the nativeView in device pixels.
Parameters
| Parameter | Type | Description |
|---|---|---|
nativeView | any | the nativeView to measure (UIView or android.view.View) |
width | number | the available width |
widthMode | number | width mode - UNSPECIFIED, EXACTLY or AT_MOST |
height | number | the available hegiht |
heightMode | number | height mode - UNSPECIFIED, EXACTLY or AT_MOST |
Returns
{
height: number;
width: number;
}height
height: number;width
width: number;- Previous
- makeMeasureSpec
- Next
- measureSpecToString