You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
would it be possible to export the typings for each gesture handler? For example, if I need to create a wrapper component which needs to be typed in the same way as one of the Gesture handlers from your lib I don't have the typings for it. One way to get them is by doing something like:
type MyWrapperProps = typeof TouchableOpacity['prototype']['props']
but it would be way nicer if the typings would be already exported from TouchableOpacity...
Do you have a plan to do something like this in the future? Or should I open an issue describing it or maybe even a PR?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi,
would it be possible to export the typings for each gesture handler? For example, if I need to create a wrapper component which needs to be typed in the same way as one of the Gesture handlers from your lib I don't have the typings for it. One way to get them is by doing something like:
type MyWrapperProps = typeof TouchableOpacity['prototype']['props']
but it would be way nicer if the typings would be already exported from TouchableOpacity...
Do you have a plan to do something like this in the future? Or should I open an issue describing it or maybe even a PR?
Thank you very much
Cheers
Beta Was this translation helpful? Give feedback.
All reactions