/** * @license * Copyright Akveo. All Rights Reserved. * Licensed under the MIT License. See License.txt in the project root for license information. */ import React from 'react'; import { Frame } from './type'; export interface MeasureElementProps
{ force?: boolean; shouldUseTopInsets?: boolean; onMeasure: (frame: Frame) => void; children: React.ReactElement
; } export declare type MeasuringElement
= React.ReactElement;
/**
* Measures child element size and it's screen position asynchronously.
* Returns measure result in `onMeasure` callback.
*
* Usage:
*
* ```tsx
* const onMeasure = (frame: Frame): void => {
* const { x, y } = frame.origin;
* const { width, height } = frame.size;
* ...
* };
*
*