-
Notifications
You must be signed in to change notification settings - Fork 85
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The touchable component cannot receive onpress event when wrapped with Ripple #27
Comments
you can use onpress props in Ripple. It worked for me :-) |
I need process separately with different handler when press the Ripple box and the link in the box, can you give a demo how to accomplish this? thank you! |
You can try.... ---TouchableWithoutFeedback supports only one child. If you wish to have several child components, wrap them in a View. Importantly, TouchableWithoutFeedback works by cloning its child and applying responder props to it. It is therefore required that any intermediary components pass through those props to the underlying React Native component. |
anyone found the solution? |
I created a gist that fixes this. Apply the patch in gist and set pointerEvents="box-none" in the Ripple element. This causes the ripple to behave weird sometimes, but the comment explains how to fix it |
Hi,
I have tried to replace TouchableWithoutFeedback with Ripple.
But the inside Touchable component will not response to touch event when it wrapped with Ripple.
Here is demo:
is there any work around to fix this?
The text was updated successfully, but these errors were encountered: