![](/img/trans.png)
[英]Hide and Show createBottomTabNavigator tabbar with Animation in react-native
[英]how to hide TabBar when keyboard is open in expo react-native
目前,TabBarBottom 放置在鍵盤上方幾秒鍾,然后下降。 我想在鍵盤打開時完全隱藏 TabBar。
expo sdk :- 38
react-navigation": “^4.0.9”,
“react-navigation-tabs”: “^2.9.0”,
"Plaform: "Android"
由於不推薦使用 tabBarOptions,您可以在 screenOptions 中嘗試tabBarHideOnKeyboard: true
您可以在 tabBarOptions 中嘗試keyboardHidesTabBar: true
嗎?
PREBA ESTO
<Tab.Navigator
initialRouteName="Feed"
tabBarOptions={{
activeTintColor: '#e91e63',
keyboardHidesTabBar: true //<=====
}}
>
<Tab.Navigator
screenOpitons={{
"tabBarHideOnKeyboard":"true",
}}
>
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.