What type to use for TouchableHighlight's props? #2106
Unanswered
LoyalPotato
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
In the type definition for the class it uses
TouchableHighlightProps & GenericTouchableProps
, butGenericTouchableProps
imports fromreact-native-gesture-handler/lib/typescript/components/touchables/GenericTouchable
which I assume isn't meant to be done.The other solution I've found that works is
React.ComponentProps<typeof TouchableHighlight>
.Beta Was this translation helpful? Give feedback.
All reactions