Skip to content

Inconsistency with navigationBarColor Transparency on react-native-screens versions >= 3.30.0" #2122

@yunarch

Description

@yunarch

Description

Before version 3.30.0, when the navigationBarColor was set to transparent on a Stack navigator, the navigation bar would preserve transparency, adopting the color defined on SafeAreaView. However, in version 3.30.0 and onwards, this behavior has changed: the navigation bar no longer maintains transparency but instead defaults to a white color (or black if navigationBarColor is not explicitly defined).

Steps to reproduce

Setting a stack navigator with navigationBarColor set as transparent:

const Stack = createNativeStackNavigator();

....

<Stack.Navigator
      screenOptions={{
        ...
        navigationBarColor: "transparent",
      }}
    >
...
</Stack.Navigator>

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

Metadata

Metadata

Assignees

Labels

Missing reproThis issue need minimum repro scenarioPlatform: AndroidThis issue is specific to Android

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions