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
Inconsistency with navigationBarColor Transparency on react-native-screens versions >= 3.30.0" #2122
Comments
Hey! 👋 The issue doesn't seem to contain a minimal reproduction. Could you provide a snack or a link to a GitHub repository under your username that reproduces the problem? |
I'm facing the same problem, after expo upgrade, the navigation bar is not longer transparent using that approach. A way you can turn around that is to use
Although I would prefer to do not have absolute position there, because I have to change all my screens that doesn't take that into account. |
@klethonio I didn't test it but by reading the documentation it looks like maybe the same result? On my case i do not want to use |
@klethonio I just test your solution and works great as a workaround, i thought it was the same result as using I as well would prefer to not have absolute position there, but the solution works nice. One thing i detected is that ios is not affected, setting // App.tsx
if (Platform.OS === "android") {
NavigationBar.setPositionAsync("absolute");
}
|
Yeah, I don't know what was the structure before, because it seemed to work like that but dynamically, always taking into account the bar height. Now it looks like the navigation bar being set as transparent, without absolute, its working, but below we have a black/white background, or it's not that, anyway, I'm lost. That's out of my league at the moment. For example, I have a FAB and previously the bottom padding was related to the top of the navigation bar, and the bar was transparent and the content of the app was behind it, it was perfect. After the update the bar was opaque and after applying Summing up... I think this should just work as before! By the way, thank you for your thoughts. |
Description
Before version
3.30.0
, when thenavigationBarColor
was set to transparent on a Stack navigator, the navigation bar would preserve transparency, adopting the color defined on SafeAreaView. However, in version3.30.0
and onwards, this behavior has changed: the navigation bar no longer maintains transparency but instead defaults to a white color (or black ifnavigationBarColor
is not explicitly defined).Steps to reproduce
Setting a stack navigator with
navigationBarColor
set as transparent:Snack or a link to a repository
https://github.com/software-mansion/react-native-screens
Screens version
>= 3.30.0
React Native version
0.74.1
Platforms
Android
JavaScript runtime
None
Workflow
Expo managed workflow
Architecture
None
Build type
None
Device
Android emulator
Device model
Pixel_3a_API_34
Acknowledgements
Yes
The text was updated successfully, but these errors were encountered: