Skip to content

Commit e531ad3

Browse files
authored
Merge pull request #2 from wcandillon/patch-30
Update react-native-reanimated.d.ts
2 parents 9015559 + daef5ff commit e531ad3

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

react-native-reanimated.d.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -436,7 +436,11 @@ declare module 'react-native-reanimated' {
436436
export function useDerivedValue<T extends SharedValueType>(
437437
processor: () => T
438438
): SharedValue<T>;
439-
export function useAnimatedStyle<T extends ViewStyle, TextStyle, ImageStyle>(
439+
440+
export function useAnimatedStyle<T extends StyleProp<AnimateStyle<ViewStyle | ImageStyle | TextStyle>>>(
441+
updater: () => T
442+
): T;
443+
export function useAnimatedProps<T extends {}>(
440444
updater: () => T
441445
): T;
442446
export function useAnimatedGestureHandler<TContext extends Context>(
@@ -605,6 +609,7 @@ declare module 'react-native-reanimated' {
605609
export const useValue: typeof Animated.useValue
606610
export const useSharedValue: typeof Animated.useSharedValue
607611
export const useAnimatedStyle: typeof Animated.useAnimatedStyle
612+
export const useAnimatedProps: typeof Animated.useAnimatedProps
608613
export const useDerivedValue: typeof Animated.useDerivedValue
609614
export const useAnimatedGestureHandler: typeof Animated.useAnimatedGestureHandler
610615
export const useAnimatedScrollHandler: typeof Animated.useAnimatedScrollHandler

0 commit comments

Comments
 (0)