react-native-reanimated
Version:
More powerful alternative to Animated library for React Native.
17 lines • 839 B
TypeScript
import type { MeasuredDimensions, WrapperRef } from '../commonTypes';
import type { AnimatedRef } from '../hook/commonTypes';
type Measure = <TRef extends WrapperRef>(animatedRef: AnimatedRef<TRef>) => MeasuredDimensions | null;
/**
* Lets you synchronously get the dimensions and position of a view on the
* screen.
*
* @param animatedRef - An [animated
* ref](https://docs.swmansion.com/react-native-reanimated/docs/core/useAnimatedRef#returns)
* connected to the component you'd want to get the measurements from.
* @returns An object containing component measurements or null when the
* measurement couldn't be performed- {@link MeasuredDimensions}.
* @see https://docs.swmansion.com/react-native-reanimated/docs/advanced/measure/
*/
export declare let measure: Measure;
export {};
//# sourceMappingURL=measure.d.ts.map