File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments