torgeadelin / react-native-animated-nav-tab-bar

A simple and customisable React Native component that implements an animated bottom tab bar for React Navigation.
MIT License
889 stars 102 forks source link

How to hide tab bar when modal is visible #117

Closed rahmanharoon closed 2 years ago

rahmanharoon commented 2 years ago

I have a use case of showing a modal when i display the modal its coming below of the tab bar I need to show the modal above the tab bar

Here is the image of current behaviour Simulator Screen Shot - iPhone 12 mini - 2022-05-16 at 18 16 48

Here my bottom content of modal is under the tab bar. How can i get rid of this situation?

 <Tabs.Navigator
      initialRouteName={"HOME"}
      appearance={{
        shadow: true,
        dotCornerRadius: 100,
        dotSize: DotSize.SMALL,
        // horizontalPadding: 100,
        tabButtonLayout: TabButtonLayout.VERTICAL,
        whenInactiveShow: TabElementDisplayOptions.BOTH,
        whenActiveShow: TabElementDisplayOptions.ICON_ONLY,
      }}
      tabBarOptions={{
        shadow: true,
        position: 'absolute',
        keyboardHidesTabBar: true,
        activeTintColor: colors.color2,
        inactiveTintColor: colors.bottomIcons,
        activeBackgroundColor: colors.color1,
        labelStyle: {
          fontSize: 14,
          marginTop: 2,
          fontStyle: 'normal',
          fontWeight: 'normal',
        },
        tabStyle: {
          width: '100%',
        },
      }}>
{...}
</Tabs.Navigator>

Here is my code of tab bar initialisation

github-actions[bot] commented 2 years ago

Stale issue message