1 | import type { StyleProps } from '../commonTypes';
|
2 | import type { AnimatedRef } from '../hook/commonTypes';
|
3 | import type { Component } from 'react';
|
4 | type SetNativeProps = <T extends Component>(animatedRef: AnimatedRef<T>, updates: StyleProps) => void;
|
5 | /**
|
6 | * Lets you imperatively update component properties. You should always reach
|
7 | * for
|
8 | * [useAnimatedStyle](https://docs.swmansion.com/react-native-reanimated/docs/core/useAnimatedStyle)
|
9 | * and
|
10 | * [useAnimatedProps](https://docs.swmansion.com/react-native-reanimated/docs/core/useAnimatedProps)
|
11 | * first when animating styles or properties.
|
12 | *
|
13 | * @param animatedRef - An [animated
|
14 | * ref](https://docs.swmansion.com/react-native-reanimated/docs/core/useAnimatedRef#returns)
|
15 | * connected to the component you'd want to update.
|
16 | * @param updates - An object with properties you want to update.
|
17 | * @see https://docs.swmansion.com/react-native-reanimated/docs/advanced/setNativeProps
|
18 | */
|
19 | export declare let setNativeProps: SetNativeProps;
|
20 | export {};
|
21 | //# sourceMappingURL=setNativeProps.d.ts.map |
\ | No newline at end of file |