Bottom bar is not hidden when Android keyboard is visible and adjustResize mode
Issue Description
Bottom bar is not hidden when Android keyboard is visible and adjustResize mode
Steps to Reproduce / Code Snippets / Screenshots
android:windowSoftInputMode="stateHidden|adjustResize"
Environment
- React Native Navigation version: 2.17.0
- React Native version: 0.58.3
- Platform(s) (iOS, Android, or both?): Android
- Device info (Simulator/Device? OS version? Debug/Release?): Simulator and any android device
Hey any update on this?
We were having discussion for this on https://github.com/wix/react-native-navigation/issues/1299#issuecomment-525999477, but it is deleted now -_-
We were discussing that the navBar can be hidden manually with the help of mergeOptions, like this:
Navigation.mergeOptions(this.props.componentId, {
bottomTabs: {
visible: true
}
});.
I tried this solution listening to Keyboard appearing/disappearing with Keyboard.addListener("keyboardDidShow", this.keyboardDidShow) and Keyboard.addListener("keyboardDidHide", this.keyboardDidHide).
Yes, that solution works. But it works for all screens (even for the screens where the tab bars are hidden). And that way for the screen without tab bar, when the keyboard is closed bottomTab (tab bar) becomes visible, which is not a feature which I want.
Anybody could find a global solution to avoid bottom tabs up movement when a keyboard is opened?
@DavitVosk This issue is resolved in v3. Prior to v3, hiding the keyboard with mergeOptions is the only solution.
@guyca thanks for answer. But it seems that drawBehind can't be changed in mergeOptions? I need it to change from false to true and vice versa when hiding my bottom tabs
hey @guyca, is there a way to solve it in v1? (i.e., not showing the bottom navigation bar above keyboard)
@oferRounds https://github.com/wix/react-native-navigation/issues/5371#issuecomment-528866411
Toda Guy – yes, saw it, but was not sure what is the "mergeOptions" and if it’s available on V1
It's the equivalent of setStyle() of v1
Got you. But with param? Can’t find anything which looks like this
I’m looking here
Sorry @oferRounds , It's been so long I really don't remember. Why don't do you migrate to v6 already? 🙈
Ok, it’s on the plans :\ Next time I’ll write here it will be related to v6 :)
בעזרת השם