-
Notifications
You must be signed in to change notification settings - Fork 24.3k
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
PanResponder is not working on Android after upgrade from 0.54.2 to 0.57.6 #22434
Comments
Could you be more specific about what exactly doesn't work? Are the events not firing, is something crashing? If you are able to specify that, maybe you can also provide a smaller example showing the exact issue, making it easier for us to understand what is going on. |
Sure @bartolkaruza, the events are not firing, but no errors or warnings. For debugging purposes I have added a console.log on onPanResponderStart but it never comes out on Android (again, it works fine in iOS and it was working in Android before upgrade). |
Could this be related to your particular view being collapsed by Android? Try the solution to this related issue: |
Thanks @bartolkaruza, I'm going to try setting collapsable=false but the issue mentioned is still open and doesn´t seem like a "elegant solution" but a workaround and always remembering, it was working in react-native 0.54.2. I´m updating this thread later today with the results. |
I did set the collapseable prop to false in my component view but didn't help, I've tried this in the parent view as well but no luck either. |
If you are still encountering the issue described here, please open a new issue and make sure to fill out the Issue Template when doing so. |
I have created a Circular Slider, using PanResponder, based on existing GitHub project and it was working beautifully in both Android and iOS (react-native version ^0.54.2).
Recently I was facing some unrelated issues which required me to upgrade to React-Native 0.57.6 and after that the PanResponder is no longer working on Android but continues fine in iOS.
Follows my code, any help is more than welcome.
PS.: I was having issues with it being in a ScrollView on iOS. I have fixed it add a toggle flag to disable the scroll once the user starts the panResponder. It was working in previous version and is not related to the existing issue.
React Native Environment Info:
System:
OS: Linux 4.4 Ubuntu 18.04.1 LTS (Bionic Beaver)
CPU: (4) x64 Intel(R) Core(TM) i5-6300U CPU @ 2.40GHz
Memory: 1.29 GB / 7.89 GB
Shell: 4.4.19 - /bin/bash
Binaries:
Node: 8.10.0 -xxx
Yarn: 1.12.3 - xxx
npm: 3.5.2 - xxx
npmPackages:
react: ^16.6.3 => 16.5.0
react-native: ^0.57.6 => 0.57.1
npmGlobalPackages:
react-native-cli: 2.0.1
The text was updated successfully, but these errors were encountered: