UNPKG

react-native-ui-lib

Version:

[![SWUbanner](https://raw.githubusercontent.com/vshymanskyy/StandWithUkraine/main/banner-direct.svg)](https://stand-with-ukraine.pp.ua)

14 lines (13 loc) 494 B
import { RefCallback } from 'react'; import { View, LayoutChangeEvent } from 'react-native'; import { PanningDirectionsEnum } from '../panView'; type HiddenLocationRecord = Record<PanningDirectionsEnum, number>; export interface HiddenLocation extends HiddenLocationRecord { wasMeasured: boolean; } export default function useHiddenLocation<T extends View>(): { setRef: RefCallback<T>; onLayout: (event: LayoutChangeEvent) => void; hiddenLocation: HiddenLocation; }; export {};