react-native-reanimated
Version:
More powerful alternative to Animated library for React Native.
17 lines (16 loc) • 863 B
TypeScript
import type { MutableRefObject } from 'react';
import type { DependencyList } from './commonTypes';
import type { ViewDescriptorsSet, ViewRefSet } from '../ViewDescriptorsSet';
import type { AnimatedStyle } from '../commonTypes';
import type { ImageStyle, RegisteredStyle, TextStyle, ViewStyle } from 'react-native';
import type { AnimateStyle } from '../helperTypes';
export interface AnimatedStyleResult {
viewDescriptors: ViewDescriptorsSet;
initial: AnimatedStyle;
viewsRef: ViewRefSet<any>;
animatedStyle?: MutableRefObject<AnimatedStyle>;
}
type AnimatedStyleProp<T> = AnimateStyle<T> | RegisteredStyle<AnimateStyle<T>>;
type useAnimatedStyleType = <T extends AnimatedStyleProp<ViewStyle | ImageStyle | TextStyle>>(updater: () => T, deps?: DependencyList | null) => T;
export declare const useAnimatedStyle: useAnimatedStyleType;
export {};