I want to hide the Bottom Navigation Bar or make it transparent so that View take full screen.
Is there any way to do this?
Bottom Navigation Bar to change
I’m expecting that it will auto hide when not in use. It should only be visible when user want to use the navigation like in Youtube when we watch video in Landscape view.
2
Answers
You can refer to this thread : https://stackoverflow.com/a/55077439/20325571
You will need to install a new package :
npm install react-native-navigation-bar-color
Then, you will need to import
And these methods will be available :
ShowNavigationBar();
And
HideNavigationBar();
You can use expo’s NavigationBar component to control its appearance.
setVisibilityAsync
andsetBehaviourAsync
will be to two functions you want. From the docs:For example, if the navigation bar is hidden (setVisibilityAsync(false)) and the behavior is ‘overlay-swipe’, the user can swipe from the bottom of the screen to temporarily reveal the navigation bar.
https://docs.expo.dev/versions/latest/sdk/navigation-bar/