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
Button components currently have and onPress prop which passes a boolean to its callback indicating whether the gesture happened inside the component or not.
For instance, I have a situation in which I'm using a RectButton and I need to get the user's touch x and y coordinate to display a context menu, but I don't have access to these props.
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
-
Button components currently have and onPress prop which passes a boolean to its callback indicating whether the gesture happened inside the component or not.
Is it possible to add props similar to the ones in react-native pressable components? Like the ones listed in https://reactnative.dev/docs/pressevent
For instance, I have a situation in which I'm using a RectButton and I need to get the user's touch x and y coordinate to display a context menu, but I don't have access to these props.
Is there a reliable workaround for this?
Beta Was this translation helpful? Give feedback.
All reactions