-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
feat: add support for isNavigationBarTranslucentAndroid #6431
feat: add support for isNavigationBarTranslucentAndroid #6431
Conversation
I have a patch in my app to do this (but without the config parameter part). I think you might also need to adjust the value here for when using the keyboard height.
|
@janicduplessis Nice catch, thanks! Fixed in 80531ea. |
Waiting on this for my project, might use this branch for now, good job! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good 👍
Summary
Resolves #6043. For StatusBar we have a flag that removes top padding when we want to render RN stuff "under" StatusBar. A similar problem was raised in #6043, but for NavigationBar, so I added another flag
isNavigationBarTranslucentAndroid
that removes bottom padding as well. Currently, I see no way to make it automatic. I tried one approach to remove the flags in #5889, but it doesn't seem to be the performant solution.Preview
Test plan
Testing is a bit tricky, because an example from the issue uses a navigation bar package from Expo, which requires Expo and our example app doesn't have Expo.
What I did:
Steps
App.tsx to test