UNPKG

react-native-reanimated

Version:

More powerful alternative to Animated library for React Native.

14 lines (13 loc) 938 B
import type { MutableRefObject } from 'react'; import type { AnimatedStyle, SharedValue, StyleProps } from './commonTypes'; import type { Descriptor } from './hook/commonTypes'; import type { ViewRefSet } from './ViewDescriptorsSet'; export declare const colorProps: string[]; export declare const ColorProperties: string[]; export declare let updateProps: (viewDescriptor: SharedValue<Descriptor[]>, updates: StyleProps | AnimatedStyle, maybeViewRef: ViewRefSet<any> | undefined) => void; export declare const updatePropsJestWrapper: (viewDescriptors: SharedValue<Descriptor[]>, updates: AnimatedStyle, maybeViewRef: ViewRefSet<any> | undefined, animatedStyle: MutableRefObject<AnimatedStyle>, adapters: ((updates: AnimatedStyle) => void)[]) => void; export default updateProps; export interface UpdatePropsManager { update(viewDescriptors: SharedValue<Descriptor[]>, updates: StyleProps | AnimatedStyle): void; flush(): void; }