UNPKG

react-native-reanimated

Version:

More powerful alternative to Animated library for React Native.

15 lines 848 B
import type { MutableRefObject } from 'react'; import type { AnimatedStyle } from '../commonTypes'; import type { PropUpdates } from '../createAnimatedComponent/commonTypes'; import type { Descriptor } from '../hook/commonTypes'; declare let updateProps: (viewDescriptors: ViewDescriptorsWrapper, updates: PropUpdates, isAnimatedProps?: boolean) => void; export declare const updatePropsJestWrapper: (viewDescriptors: ViewDescriptorsWrapper, updates: AnimatedStyle<any>, animatedValues: MutableRefObject<AnimatedStyle<any>>, adapters: ((updates: AnimatedStyle<any>) => void)[]) => void; export default updateProps; /** * This used to be `SharedValue<Descriptors[]>` but objects holding just a * single `value` prop are fine too. */ interface ViewDescriptorsWrapper { value: Readonly<Descriptor[]>; } //# sourceMappingURL=updateProps.d.ts.map