-
-
Notifications
You must be signed in to change notification settings - Fork 59
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
Attempting to swipe back but not actually swiping back causes undesirable blank view while text input is focused #89
Comments
I've never encountered this problem in the projects I've worked on. This seems to be a conflict related to the navigation library. Are you using React Navigation? react-native-screens? Because in React Navigation we have just one native screen, and then the internal screens are simulated with "Views" and animation. Can you share a reproducible example with these libraries together? |
sure. I will work one a reproducable demo compiled using eas build and share the result and the repo link. And yes I am using react navigation and react-native-screens |
Same results with the following minimal repo: ex2.mp4ex1.mp4 |
Bingo, the problem is related to "@react-navigation/native-stack". Replacing to "@react-navigation/stack" the problem dont happens. I will report to IQKeyboardManager and make myself available to help if necessary. Let's follow the thread hackiftekhar/IQKeyboardManager#1361 and hackiftekhar/IQKeyboardManager#1422 |
I created a native iOS Xcode project, with Storyboards and Navigation Controllers, and problem don't happen. This make me think that the "react-native-screens" uses some strategy to do a "native navigation" that's breaking the IQKeyboardManager. Possible related issues: https://github.com/software-mansion/react-native-screens/issues?q=is%3Aissue+blank+ios |
yes confirmed that the bug is not there when using stack instead of native stack. thank you!! |
@ramiel1999 maybe worth an issue report at react-native-screens. |
For the moment, I think it's better to disable gestures when using the native-stack. <NativeStack.Navigator
screenOptions={{
//Disable goBack with gesture to prevent this issue:
//https://github.com/douglasjunior/react-native-keyboard-manager/issues/89
...(Platform.OS === 'ios' ? { gestureEnabled: false } : {}),
}}
> |
That's a behavior almost all ios user rely on. Definitely not a good solution. A solution I found was to use scrollviews instead of views for the parent component of the screen if possible because then it doesnt happen |
It's a bad solution. However, when the bug occurs then the App gets broken in my case, which is even worse. I am already using |
I used eas build from expo
0.64.3
6.5.4-4
14.4
nope
yes
The repro is in a private project. The setup just requires two screen(ScreenA, ScreenB) in a stack navigator. Navigate to ScreenB and let there be a textinput and focus on it, then partially swipe back but then give up swiping back, there should be a blank space. If you are not able to reproduce it. I will definitely provide a minimal repro.
ex1.mp4
ex2.mp4
I understand that this package depends on IQKeyboardManager, and this issue was opened a long time in https://github.com/hackiftekhar/IQKeyboardManager/issues/1361. It was mentioned that it was resolved but it doesnt seem to be.
Can you please confirm the bug and if possible suggest a solution if any?
The text was updated successfully, but these errors were encountered: