Ask a Question
Advertise on boostr.in
capturing global gestures how to build the appstore buy button using -'ios,react-native'
capturing global gestures how to build the appstore buy button ¬†using -'ios,react-native'
I would like to have an AppStore-like buy process in my app.
On first touch, the BUY button changes, asking the user to confirm.
If the user touches anywhere else on the screen, the BUY button changes back to normal. The regular touch was intercepted.
I'm not sure what is the best way to do (2) in react-native.
I can intercept touches using the responder system (i.e. PanResponder) for the whole screen. But then the touch will never reach the BUY button (the TouchableWithHighlight control).
The touch event contains the node id of the element being touched, which could be compared with the desired element, but this is very hard, because the touchable area may contain more than one node.
How could this be approached?
Sep 7, 2015
to add a comment.
Your name to display (optional):
Email me at this address if my answer is selected or commented on:
Email me if my answer is selected or commented on
Privacy: Your email address will only be used for sending these notifications.
To avoid this verification in future, please