react-native-ui-lib
Version:
<p align="center"> <img src="https://user-images.githubusercontent.com/1780255/105469025-56759000-5ca0-11eb-993d-3568c1fd54f4.png" height="250px" style="display:block"/> </p> <p align="center">UI Toolset & Components Library for React Native</p> <p a
16 lines (15 loc) • 588 B
TypeScript
import { RefObject } from 'react';
import { View, LayoutChangeEvent } from 'react-native';
import { PanningDirectionsEnum } from '../panView';
declare type HiddenLocationRecord = Record<PanningDirectionsEnum, number>;
export interface HiddenLocation extends HiddenLocationRecord {
isDefault: boolean;
}
export interface HiddenLocationProps<T extends View> {
containerRef: RefObject<T>;
}
export default function useHiddenLocation<T extends View>(props: HiddenLocationProps<T>): {
onLayout: (event: LayoutChangeEvent) => void;
hiddenLocation: HiddenLocation;
};
export {};