UNPKG

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

35 lines (34 loc) 1.13 kB
import { HiddenLocation } from '../hooks/useHiddenLocation'; import { TransitionViewDirection } from './useAnimatedTranslator'; import { AnimationNotifierEndProps, TransitionViewAnimationType } from './useAnimationEndNotifier'; export interface AnimatedTransitionProps extends AnimationNotifierEndProps { /** * Callback to the animation start. */ onAnimationStart?: (animationType: TransitionViewAnimationType) => void; /** * If this is given there will be an enter animation from this direction. */ enterFrom?: TransitionViewDirection; /** * If this is given there will be an exit animation to this direction. */ exitTo?: TransitionViewDirection; } declare type Props = AnimatedTransitionProps & { hiddenLocation: HiddenLocation; }; export default function useAnimatedTransition(props: Props): { exit: () => void; animatedStyle: { transform: ({ translateX: number; translateY?: undefined; } | { translateY: number; translateX?: undefined; })[]; opacity: number; }; }; export {};