Skip to content
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

Does not work with nested pressables #1

Open
RayKay91 opened this issue Sep 28, 2024 · 2 comments
Open

Does not work with nested pressables #1

RayKay91 opened this issue Sep 28, 2024 · 2 comments

Comments

@RayKay91
Copy link

If PressableScale wraps a TouchableOpacity for example, the touch event is captured by both. It should only be captured by the child.

@hstorz
Copy link

hstorz commented Nov 27, 2024

I noticed the same issue in a PressableScale card component, containing multiple buttons. Parent and child onPress events are triggered.
Also when using a PressableScale button in a TouchableOpacity container, when pressing the PressableScale button it triggers the container's onPress as well.
This is not happening, when using just TouchableOpacity for card container and buttons.

@mehdidavoodi7
Copy link

Same issue here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants