-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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 gets cut off when a tabs is switched programmatically or the screen is popped (with visible keyboard) #7436
Comments
Today I managed to solve my situation using the react-native-navigation version 7.23.1. I have tested a bunch of versions and the 7.23.1 showed to be stable. |
@cassioseffrin, Can you please provide a minimal code/project so we can debug it? It seems that this issue happens for other devs, and a code that is minimal that helps reproduce the issue will be helpful. You can use our playground and share a fork where the bug is reproducible. |
@swabbass, The source code will depends of some private backend rules that will be difficult to simulate. To be simpler possible, the issue happens in 2 very common scenarios. Don't matter if the components are Classes or Hooks based (both cases) 1st: When you push a screen and then pop back to the 1st stack screen. Here is my Tabs config
|
You don't need to share the source code, make a separate clean project, or use our playground and write the changes (minimal changes) that lead to the bug. The code you shared does not help reproduce the issue. |
@swabbass, understood I will follow your suggestion and share a fork on your playground, however I will do it on my extra time. |
🐛 Bug Report
To Reproduce
Create a bottom tabs and just run the navigation merge with the keyboard visible.
Also when you pop the screen programmatically or use native navigation back button with the keyboard visible
Navigation.pop(props.componentId)
Expected behavior
To show the entire screens
Actual Behavior
When I do the tab select programmatically the screen has been cut off on android devices. I have tested on both versions 7.24.3-hotfix.1 and 7.25.1 It's also happen when I pop the screen with keyboard visible (Navigation.pop(props.componentId);)
This issue only happens when the tab is switched programmatically and the keyboard is visible. If I dismiss the keyboard set a timeout and then switch the tab this issue don't happen.
Also the both tabs have a ScrollView with keyboardShouldPersistTaps= handled. That means when I tap the button the action will be fired with the keyboard visible.
<ScrollView keyboardShouldPersistTaps={'handled'}>
...the page content..
</ ScrollView>
Your Environment
Reproducible Demo
The text was updated successfully, but these errors were encountered: