最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

javascript - how to hide TabBar when keyboard is open in expo react-native - Stack Overflow

programmeradmin4浏览0评论

Currently, the TabBarBottom is placed above the keyboard for few seconds and after that it goes down. i want to completely hide the TabBar when keyboard is open.

   expo sdk :- 38
    react-navigation": “^4.0.9”,
    “react-navigation-tabs”: “^2.9.0”,
    "Plaform: "Android"

Currently, the TabBarBottom is placed above the keyboard for few seconds and after that it goes down. i want to completely hide the TabBar when keyboard is open.

   expo sdk :- 38
    react-navigation": “^4.0.9”,
    “react-navigation-tabs”: “^2.9.0”,
    "Plaform: "Android"
Share Improve this question asked Aug 10, 2020 at 14:00 Binit Chandra JhaBinit Chandra Jha 891 gold badge2 silver badges6 bronze badges
Add a comment  | 

4 Answers 4

Reset to default 12
<Tab.Navigator
  screenOptions={{
    tabBarHideOnKeyboard: true,
  }}
>

Since tabBarOptions is deprecated you can try tabBarHideOnKeyboard: true in screenOptions

Can you try keyboardHidesTabBar: true in tabBarOptions.

PREBA ESTO

<Tab.Navigator
  initialRouteName="Feed"
  tabBarOptions={{
    activeTintColor: '#e91e63',
    keyboardHidesTabBar: true //<=====
  }}
>
发布评论

评论列表(0)

  1. 暂无评论