UNPKG

@ant-design/react-native

Version:

基于蚂蚁金服移动设计规范的 React Native 组件库

22 lines (21 loc) 696 B
import { Animated, EasingFunction } from 'react-native'; type animateType = (_TimingAnimationConfig: { toValue?: number | Animated.AnimatedValue | { x: number; y: number; } | Animated.AnimatedValueXY | Animated.AnimatedInterpolation; easing?: EasingFunction; duration?: number; delay?: number; useNativeDriver?: boolean; callback?: (arg: { finished: boolean; }) => void; }) => void; interface ConfigureInterface { initialValue: number; animate: animateType; } export declare function useAnimate(configure: ConfigureInterface): Animated.Value[]; export declare function useAnimatedTiming(): [Animated.Value, animateType]; export {};