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,
    }}
  >

6

u/[deleted] Sep 20 '20

I was like, I use this option always with tabBarOptions prop. Why the code is so long? Maybe question is different.