File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- import { useId , type ComponentProps , type Ref } from "react" ;
1+ import { useId , type ComponentPropsWithRef } from "react" ;
22import { Text as RNText } from "react-native" ;
33
44import { createAnimatedComponent } from "react-native-reanimated" ;
@@ -13,12 +13,7 @@ const AnimatedText = createAnimatedComponent(RNText);
1313
1414export const Text = copyComponentProperties (
1515 RNText ,
16- (
17- p : ComponentProps < typeof AnimatedText > & {
18- className ?: string ;
19- ref ?: Ref < RNText > ;
20- } ,
21- ) => {
16+ ( p : ComponentPropsWithRef < typeof AnimatedText > ) => {
2217 const componentId = useId ( ) ;
2318 const styled = useStyledProps ( componentId , p . className , p ) ;
2419
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ const AnimatedView = createAnimatedComponent(Pressable);
1313
1414export const View = copyComponentProperties (
1515 AnimatedView ,
16- ( p : ComponentProps < typeof AnimatedView > & { className ?: string } ) => {
16+ ( p : ComponentProps < typeof AnimatedView > ) => {
1717 const componentId = useId ( ) ;
1818 const styled = useStyledProps ( componentId , p . className , p ) ;
1919 const ref = useDualRefs ( componentId , p . ref ) ;
You can’t perform that action at this time.
0 commit comments