-
-
Notifications
You must be signed in to change notification settings - Fork 31
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Before submitting a new issue
- I tested using the latest version of the library, as the bug might be already fixed.
- I tested using a supported version of react native.
- I checked for possible duplicate issues, with possible answers.
Bug summary
When you use the <SystemBars />
component or imperatively use pushStackEntry
and popStackEntry
inside a React Native modal, the status bar style is inconsistently applied. Sometimes it'll update to the correct color, other times it doesn't.
I troubleshooted and followed all the way down to the Android layer and can confirm that the value is getting passed to isAppearanceLightStatusBars
here.
This is happening on new and old arch.
Note: I know that edge to edge functionality is now built into React Native 81, and my reproducible example is using 81 with react-native-edge-to-edge
, but this is also present in RN 79.
Screen_Recording_20250903_132658_EdgeToEdge.mp4
Library version
1.7.0
Environment info
System:
OS: macOS 15.5
CPU: (10) arm64 Apple M1 Pro
Memory: 93.88 MB / 16.00 GB
Shell:
version: "5.9"
path: /bin/zsh
Binaries:
Node:
version: 20.18.0
path: ~/.nvm/versions/node/v20.18.0/bin/node
Yarn:
version: 1.22.22
path: ~/.nvm/versions/node/v20.18.0/bin/yarn
npm:
version: 10.8.2
path: ~/.nvm/versions/node/v20.18.0/bin/npm
Watchman: Not Found
Managers:
CocoaPods:
version: 1.16.2
path: /opt/homebrew/bin/pod
SDKs:
iOS SDK:
Platforms:
- DriverKit 24.5
- iOS 18.5
- macOS 15.5
- tvOS 18.5
- visionOS 2.5
- watchOS 11.5
Android SDK: Not Found
IDEs:
Android Studio: 2025.1 AI-251.26094.121.2512.13930704
Xcode:
version: 16.4/16F6
path: /usr/bin/xcodebuild
Languages:
Java:
version: 17.0.12
path: /usr/bin/javac
Ruby:
version: 2.6.10
path: /usr/bin/ruby
npmPackages:
"@react-native-community/cli":
installed: 20.0.0
wanted: 20.0.0
react:
installed: 19.1.0
wanted: 19.1.0
react-native:
installed: 0.81.1
wanted: 0.81.1
react-native-macos: Not Found
npmGlobalPackages:
"*react-native*": Not Found
Android:
hermesEnabled: true
newArchEnabled: true
iOS:
hermesEnabled: Not found
newArchEnabled: false
Steps to reproduce
- Add
<SystemBars style="light" />
to your app. - Add a RN modal
- In the modal add
<SystemBars style="dark" />
- Open and close the modal a few times. You should see that sometimes it does not update the color of the status bar.
Reproducible sample code
https://github.com/sidorchukandrew/rn-edge-to-edge-repro
HADeveloper
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working