MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/reactnative/comments/iwacub/programmatically_hide_bottom_tab_when_keyboard/g5yuj30/?context=3
r/reactnative • u/Chawki_ Android • Sep 20 '20
32 comments sorted by
View all comments
129
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. 1 u/archcorsair Sep 21 '20 I think the example still applies when you implement your own tab bar, where you don't have access to these properties. 1 u/VivekNeel55 Sep 21 '20 The real MVP -7 u/Hotgeart Sep 20 '20 We don't all use react navigation... 12 u/I_know_HTML Sep 20 '20 This code implies react navigation doesn't it? navigation.setOptions right in the code 1 u/JackSparrah Sep 20 '20 Username checks out! :D 1 u/Hotgeart Sep 21 '20 Yes my bad read it too fast 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 :ProfilMessageNotificationDrawer :HomeForumSettingsIf I want the bottomNav and Drawer everywhere I would have to add homestack, forum and settings in the bottomnav but hide them.
6
I was like, I use this option always with tabBarOptions prop. Why the code is so long? Maybe question is different.
1
I think the example still applies when you implement your own tab bar, where you don't have access to these properties.
The real MVP
-7
We don't all use react navigation...
12 u/I_know_HTML Sep 20 '20 This code implies react navigation doesn't it? navigation.setOptions right in the code 1 u/JackSparrah Sep 20 '20 Username checks out! :D 1 u/Hotgeart Sep 21 '20 Yes my bad read it too fast 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 :ProfilMessageNotificationDrawer :HomeForumSettingsIf I want the bottomNav and Drawer everywhere I would have to add homestack, forum and settings in the bottomnav but hide them.
12
This code implies react navigation doesn't it? navigation.setOptions right in the code
1 u/JackSparrah Sep 20 '20 Username checks out! :D 1 u/Hotgeart Sep 21 '20 Yes my bad read it too fast
Username checks out! :D
Yes my bad read it too fast
0
[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 :ProfilMessageNotificationDrawer :HomeForumSettingsIf I want the bottomNav and Drawer everywhere I would have to add homestack, forum and settings in the bottomnav but hide them.
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.
129
u/frankielyonshaha Sep 20 '20
Why not use: