Issue
I have a disappearing header which I want to bring back into the view on a single tap anywhere on the screen. But if I am wrapping the entire <View>
inside a <TouchableX>
component the PanResponder stops working. Is there a hack around this?
Solution
You do not need to warp it with Touchable
component.
Add next props to root View
.
onResponderGrant - make View
handle touch
onStartShouldSetResponder - make View
handle start
Answered By - Mr Br
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.