Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

react-native-navigation: how to hide bottomTabs when keyboard is shown?

I am using the bottomTabs navigator from react-native-navigaton to navigation within my app. However, each time I have for example a TextInput field, the bottomTabs are being pushed up.

What is a possible way to hide the bottomTabs whenever the keyboard is being shown?

like image 697
Cactus Avatar asked Mar 18 '26 14:03

Cactus


2 Answers

just add tabBarHideOnKeyboard: true to screenOptions

like image 133
Alex Skotner Avatar answered Mar 21 '26 04:03

Alex Skotner


Add the following to your android manifest in android/app/src/AndroidManifest.xml

in your activity tag add/replace this attribute

the bottom tab should be hidden now.

android:windowSoftInputMode="stateUnspecified|adjustPan"
like image 31
we22gz Avatar answered Mar 21 '26 04:03

we22gz



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!