-
-
Notifications
You must be signed in to change notification settings - Fork 502
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
Screen unresponsive to touch when using tab navigator #53
Comments
I've been experiencing this as well when using react-native-screens and react-navigation TabNavigator. I'm also using react-native-gesture-handler for buttons but as the screencast below shows it also happens with Here is a minimal reproduction of the bug w/ screencast: https://github.com/hanse/screens-bug-repro. Merry Christmas! 🎄🎅🏻 |
I also noticed this issue in a largeish app when updating to 3.x react navigation. I installed the gesture handler library as well as react native screens to check it out, but immediately noticed the app freezing pretty frequently while switching between views. I have a stack nav containing a tab navigator where each screen is a react component, and the rest of the sub-screens are in the top-level stack navigator. Opting out of react screens seems to fix the issue. This happens in both development and release versions. I’m really excited for this library to work more stably, because it’s going to boost android experience a ton! |
Totally the same phenomenon.
or
https://github.com/react-navigation/react-navigation-tabs/issues/83
I would like to know what will happen if I do not useScreen. |
I am also facing the same issue. |
I'm facing this since I enabled |
I am using back
|
Thank you all for reporting and especially @hanse for coming up with a repro app – it was very helpful! I managed to locate a bug, fixed it and published alpha.21 with the fix included. Please try it out and let me know if you still experience the issue |
Looks like it is working well now with your fix, thank you ! |
@kmagiera This is still going on in alpha.21. Here's is a snack: expo-snack To test, I just continually switch tabs, check for scrolling and soon a tab screen will become unresponsive. However, I could only duplicate this on the physical device. |
@townmulti I tried to reproduce it, but I did not have it. Are you sure it is the same and coming from react-native-screens ? Last time, the issue was created in only a few clicks (only going to another tab and the tab was frozen forever) |
@townmulti The fix required native code changes so if you are using expo it isn't sufficient to install javascript bit via npm. I'll talk with expo and ask if they could pull in native code changes. In the meantime if you have a standalone RN app you can try it there and see if the problem still persist |
actually got an info from @tsapeta that native changes from alpha.21 will be included in the next expo patch release that is already in review and should be available soon |
issue is still present, re-opened here with easy repro snack |
Happening for me on alpha-23 with react-navigation 3.11 with a custom tab navigator that keeps multiple |
I am still facing this issue but I am not using useScreens from react-native-screens anywhere in my project |
@bhattanmol101 have you managed to find a solution? This bug is driving me crazy! |
I don't know if it's a solution or not but this is what I did. I read the above comments that Also, the As the above comment said that The below screenshot shows how I have used it in my App component. App component renders just the stack navigator in which one of the routes has bottom tabs in it, so as soon as the user logs in it goes to tab navigation. |
@bhattanmol101's solution worked for me. |
Nothing works for me |
Thanks, @bhattanmol101 your solution worked for me. |
@bhattanmol101 Thanks this works for me |
@bhattanmol101 Thanks, your solution is worked for me also. |
I also had this issue, updating react-navigation and all of its dependencies to latest version solved it for me |
This fix will bring back all touch and scroll events back but will create problem if you have tabBarIcon with position:absolute then it will not overflow the tab bar, instead it will get cut off |
This keeps happening in newer versions. None of the above solutions worked. |
in latest version, there is no |
I updated all my react-navigation and react-native-screens packages, so the problem is solved. My package.json:
cc. @smpjon3 |
I had this problem before, in my case it was that I had a WebView component in Navigation screen that caused the problem. |
I uninstall the app after adding "enablescreens(true)" and then start again |
@AlenToma what do you mean exactly? everything must go inside the nagivation context, withing screens i have a horizontal paging list where each item is a webview (like gmail app) |
Sorry, but my project is quite complicated so I can't isolate a test case.
I noticed that when upgrading from alpha.16 to alpha.19, the screen becomes unresponsive to touch when tabbing between views using the tab navigator on iOS. After toggling through several tabs the screen once again becomes responsive. Each of my tab navigators has nested stack navigators (not sure if that's relevant)
Hope this helps uncover an issue.
The text was updated successfully, but these errors were encountered: