-
Notifications
You must be signed in to change notification settings - Fork 24.5k
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
TouchableNativeFeedback ripple position bug #28944
Comments
Hey there, it looks like there has been no activity on this issue recently. Has the issue been fixed, or does it still require the community's attention? This issue may be closed if no further activity occurs. You may also label this issue as a "Discussion" or add it to the "Backlog" and I will leave it open. Thank you for your contributions. |
Closing this issue after a prolonged period of inactivity. If this issue is still present in the latest release, please feel free to create a new issue with up-to-date information. |
Hi! Was this issue somehow resolved? I'm also experiencing this using react-native 0.63.2. I tried some UI libraries with custom components (like react-native-paper), but it seems to be a problem with react-native components which those libraries apparently rely on. |
This has been bugging me for some time now and I've decided to peek at the sources for TouchableNativeFeedback. For reference, you should change I'll add a PR. |
THX! I solved my 1month problem with an interpretation of your answer. |
…#31777) Summary: TouchableNativeFeedback's ripple starts from previous location on subsequent presses. This is similar to #31669 Fixes #28944 Issue https://user-images.githubusercontent.com/23293248/123521731-1f375f00-d6d6-11eb-8e4c-fc5ffb322e67.mov Fix https://user-images.githubusercontent.com/23293248/123521735-2bbbb780-d6d6-11eb-88b2-be75342cf22a.mov ## Changelog <!-- Help reviewers and the release process by writing your own changelog entry. For an example, see: https://github.com/facebook/react-native/wiki/Changelog --> [Android] [Fixed] - TouchableNativeFeedback ripple starts on previous touch location. Pull Request resolved: #31777 Test Plan: Tested TouchableNativeFeedback examples in rn-tester app. Registering coordinates before pressed command fixes the issue. Reviewed By: lunaleaps Differential Revision: D29496515 Pulled By: kacieb fbshipit-source-id: 77ac626181a61eee2cd30c4d48e52d10d800f2d8
Description
When you make the second click on the TouchableNativeFeedback, the ripple effect is occurring at the position of the previous click.
Video sample:
React Native version:
Steps To Reproduce
Create a TouchableNativeFeedback, make clicks on many different positions.
Expected Results
Ripple must be always on click position.
Snack, code example, screenshot, or link to a repository:
The text was updated successfully, but these errors were encountered: