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

Pass disabled prop to the BaseButton in TouchableNativeFeedback #2141

Merged

Conversation

j-piasecki
Copy link
Member

Description

The disabled prop on Touchables from Gesture Handler was not passed to the BaseButton, instead it was used to ignore incoming events. This successfully made them not call onPress*() callbacks, but in case of TouchableNativeFeedback it didn't disable the event handling on the native side.
This PR makes GenericTouchable pass disabled prop further down to BaseButton, which in turn passes it to the native view, disabling touch interaction on it.

Test plan

Tested on the Example app

@j-piasecki j-piasecki linked an issue Jul 25, 2022 that may be closed by this pull request
3 tasks
@j-piasecki j-piasecki merged commit 235cf0a into main Aug 1, 2022
@j-piasecki j-piasecki deleted the @jpiasecki/fix-ripple-disabled-touchable-native-feedback branch August 1, 2022 14:32
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

Successfully merging this pull request may close these issues.

[Android] TouchableNativeFeedback still shows ripple when disabled
2 participants