-
Notifications
You must be signed in to change notification settings - Fork 24.4k
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
TouchableHighlight component not showing underlayColor on touch unless onPress property is set. #14908
Comments
Is there a particular use case you have in mind where you would use a TouchableHighlight but not actually assign a |
@hramos I understand what you're trying to say and actually i have my created my sample application successfully but it just bothers me knowing that i'm living in side of a bug like this. |
Fair enough. Seems like something that shouldn't be too hard to fix, feel free to send a PR! |
@hramos Sorry I don't know what a PR is. Can you please explain it to me ? |
PR = pull request. You can dive into the TouchableHighlight or TouchableWithoutFeedback files and see if you can fix the underlying issue, then submit the fix back to the repo. |
I was facing the same issue as facebook#14908 and decided to remove the obligation to implement any of the press methods to correctly render touches.
Hi there! This issue is being closed because it has been inactive for a while. Maybe the issue has been fixed in a recent release, or perhaps it is not affecting a lot of people. Either way, we're automatically closing issues after a period of inactivity. Please do not take it personally! If you think this issue should definitely remain open, please let us know. The following information is helpful when it comes to determining if the issue should be re-opened:
If you would like to work on a patch to fix the issue, contributions are very welcome! Read through the contribution guide, and feel free to hop into #react-native if you need help planning your contribution. |
@hramos I think this issue is still happening... |
Can confirm. |
New issue, please. |
Confirming that this still happens on |
Hit this particular bug myself. |
Is this a bug report?
Yes
Have you read the Bugs section of the Contributing to React Native Guide?
No
Environment
react-native -v
: react-native-cli: 2.0.1 react-native: 0.45.1node -v
: v6.11.0npm -v
: 3.10.10yarn --version
(if you use Yarn): 0.27.5Then, specify:
Steps to Reproduce
(Write your steps here:)
Expected Behavior
I expected the TouchableHighlight component to show underlay color on touch but it doesn't.
Actual Behavior
The TouchableHighlight only shows underlay color on tap, when the onPress property is set for it.
Touching button with onPress property
Touching button without onPresss property
Reproducible Demo
(Paste the link to an example project and exact instructions to reproduce the issue.)
Here's the sample code for this.
The text was updated successfully, but these errors were encountered: