UNPKG

962 BTypeScriptView Raw
1import type { MutableRefObject } from 'react';
2import type { StyleProps, AnimatedStyle } from './commonTypes';
3import type { Descriptor } from './hook/commonTypes';
4declare let updateProps: (viewDescriptors: ViewDescriptorsWrapper, updates: StyleProps | AnimatedStyle<any>, isAnimatedProps?: boolean) => void;
5export declare const updatePropsJestWrapper: (viewDescriptors: ViewDescriptorsWrapper, updates: AnimatedStyle<any>, animatedStyle: MutableRefObject<AnimatedStyle<any>>, adapters: ((updates: AnimatedStyle<any>) => void)[]) => void;
6export default updateProps;
7export interface UpdatePropsManager {
8 update(viewDescriptors: ViewDescriptorsWrapper, updates: StyleProps | AnimatedStyle<any>): void;
9 flush(): void;
10}
11/**
12 * This used to be `SharedValue<Descriptors[]>` but objects holding just a
13 * single `value` prop are fine too.
14 */
15interface ViewDescriptorsWrapper {
16 value: Readonly<Descriptor[]>;
17}
18//# sourceMappingURL=UpdateProps.d.ts.map
\No newline at end of file