react-native-navigation icon indicating copy to clipboard operation
react-native-navigation copied to clipboard

Bottom bar is not hidden when Android keyboard is visible and adjustResize mode

Open peresbri opened this issue 7 years ago • 15 comments

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

peresbri avatar Aug 09 '19 05:08 peresbri

Hey any update on this?

agungkes avatar Sep 05 '19 04:09 agungkes

We were having discussion for this on https://github.com/wix/react-native-navigation/issues/1299#issuecomment-525999477, but it is deleted now -_-

DavitVosk avatar Sep 05 '19 14:09 DavitVosk

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.

DavitVosk avatar Sep 05 '19 14:09 DavitVosk

Anybody could find a global solution to avoid bottom tabs up movement when a keyboard is opened?

DavitVosk avatar Sep 06 '19 10:09 DavitVosk

@DavitVosk This issue is resolved in v3. Prior to v3, hiding the keyboard with mergeOptions is the only solution.

guyca avatar Sep 06 '19 14:09 guyca

@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

DavitVosk avatar Sep 09 '19 06:09 DavitVosk

hey @guyca, is there a way to solve it in v1? (i.e., not showing the bottom navigation bar above keyboard)

oferRounds avatar May 05 '20 13:05 oferRounds

@oferRounds https://github.com/wix/react-native-navigation/issues/5371#issuecomment-528866411

guyca avatar May 06 '20 07:05 guyca

Toda Guy – yes, saw it, but was not sure what is the "mergeOptions" and if it’s available on V1

oferRounds avatar May 06 '20 12:05 oferRounds

It's the equivalent of setStyle() of v1

guyca avatar May 06 '20 18:05 guyca

Got you. But with param? Can’t find anything which looks like this

oferRounds avatar May 06 '20 21:05 oferRounds

I’m looking here

oferRounds avatar May 06 '20 22:05 oferRounds

Sorry @oferRounds , It's been so long I really don't remember. Why don't do you migrate to v6 already? 🙈

guyca avatar May 07 '20 02:05 guyca

Ok, it’s on the plans :\ Next time I’ll write here it will be related to v6 :)

oferRounds avatar May 07 '20 08:05 oferRounds

בעזרת השם

guyca avatar May 07 '20 08:05 guyca