r/reactnative • Android • Sep 20 '20

Programmatically Hide Bottom tab when keyboard open.

Post image
198 Upvotes

32 comments sorted by

View all comments

129

u/frankielyonshaha Sep 20 '20

Why not use:

  <BottomTab.Navigator
    tabBarOptions={{
      keyboardHidesTabBar: true,
    }}
  >

-7

u/Hotgeart Sep 20 '20

We don't all use react navigation...

0

u/[deleted] Sep 20 '20

[deleted]

1

u/Hotgeart Sep 21 '20

I find it too much complex when you want the drawer and bottomNav everywhere. But not display a link in it. So you've to rely on hacky solution.

Example:

BottomNav :

  • Profil

  • Message

  • Notification

Drawer :

  • Home

  • Forum

  • Settings

If I want the bottomNav and Drawer everywhere I would have to add homestack, forum and settings in the bottomnav but hide them.