Detect NavigationBar type #62
Closed
unendingblue
started this conversation in
Ideas
Replies: 1 comment
-
Hi, it's out of the scope of this library. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
I've been looking for a way to detect what type of navigation bar the system is set to (gesture navigation, 2-button navigation, 3-button navigation), so that I can conditionally set its visibility. For example, I would like to hide it if it's set to 2/3-button navigation, but keep it visible if it's gesture navigation.
Expo's expo-navigation-bar explicitly mentions that it does not detect whether gesture navigation is enabled or not. Nonetheless, I've found react-native-navigation-bar-detector which does correctly determine the type.
The code would theoretically look something like this:
A
useNavigationBarType
hook could also work.Would something like this be within the scope of this library?
Beta Was this translation helpful? Give feedback.
All reactions