Skip to content

StatusBar background becomes unexpectedly dark/opaque after interactions (e.g. navigation, press buttons, open modals etc)) #8002

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

Open
1 task done
MrKinq opened this issue Apr 16, 2025 · 0 comments

Comments

@MrKinq
Copy link

MrKinq commented Apr 16, 2025

What happened?

#Issue

In a React Native project using react-native-navigation, the StatusBar background color becomes unexpectedly dark or semi-transparent after certain user interactions.

Even when explicitly setting:

Navigation.setDefaultOptions({
statusBar: {
backgroundColor: 'white', // or '#fff' or even null
style: 'dark',
},
});

the StatusBar initially appears correctly, but after certain events — such as:

Navigating to another screen

Pressing a button

Triggering re-renders

…the StatusBar background changes to a semi-transparent black (visually: rgba(0,0,0,0.4) or similar), even though the color was explicitly set.

What was the expected behaviour?

Keep the colors set in default option?!

Was it tested on latest react-native-navigation?

  • I have tested this issue on the latest react-native-navigation release and it still reproduces.

Help us reproduce this issue!

Basic/Advanced setup declare in react-native-navigation docs

In what environment did this happen?

React Native Navigation version: 7.45.0
React Native version: 0.76.9
Has Fabric (React Native's new rendering system) enabled: no
Node version: >=18
Device model: Samsung galaxy a54
Android version: 14

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant