Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tabBarHideOnKeyboard not hiding tab bar when keyboard opens #123

Open
zuhairnaqi opened this issue Sep 15, 2021 · 1 comment
Open

tabBarHideOnKeyboard not hiding tab bar when keyboard opens #123

zuhairnaqi opened this issue Sep 15, 2021 · 1 comment
Labels
bug Something isn't working

Comments

@zuhairnaqi
Copy link

zuhairnaqi commented Sep 15, 2021

Bug

Environment info

Library Version
@gorhom/animated-tabbar =2.1.1
react-native 0.65.1
react-native-reanimated ^2.3.0-alpha.3
react-native-gesture-handler ^1.10.3
react-native-svg ^12.1.1

Steps To Reproduce

Not hiding the tab bar when the keyboard opens.

Describe what you expected to happen:

It should hide the tab bar when the keyboard opens and show again when keyboard hides.

Reproducible sample code

----> androidManifest.xml
<activity
        android:name=".MainActivity"
        android:label="@string/app_name"
        android:screenOrientation="portrait"
        android:configChanges="keyboard|keyboardHidden|orientation|screenSize|uiMode"
        android:launchMode="singleTask"
        android:exported="true"
        android:windowSoftInputMode="adjustResize">
      </activity>
import {createBottomTabNavigator} from '@react-navigation/bottom-tabs';
const Tab = createBottomTabNavigator();
<Tab.Navigator
      initialRouteName={BottomTabs.Remotes}
      screenOptions={() => ({
        headerShown: false,
        tabBarHideOnKeyboard: true,
      })}
      tabBar={props => <FooterTab {...props} theme={theme} />}>
      <Tab.Screen
        name={'Scenes'}
        options={{title: 'Scenes'}}
        component={ScenesNavigation}
      />
    </Tab.Navigator>
@zuhairnaqi zuhairnaqi added the bug Something isn't working label Sep 15, 2021
@sumitagarwal31
Copy link

any update on this ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants