You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Oct 14, 2020. It is now read-only.
Integrated RN single view into existing iOS project. Doing a push presentation (not modal).
Existing iOS screen is using light content already (i.e. status bar text color is white).
🐛 Bug Report
When going back to native app, status bar color always changes back to default (i.e. status bar text colour is black) when I render StatusBar.
To Reproduce
Use the code below.
1. Make sure your native app status bar at this point in time is already lightContent.
2. Present a RN view controller via push. Notice how the status bar is still light-content (i.e. white text) because of the StatusBar code (see code).
3. Pop the RN view controller. Observe the color change bug in the status bar.
Now remove the RN code with StatusBar. Reload your app.
Repeat Step 1-3. Observe how the status bar text colour is not changed anymore as expected!
I did not test if the problem exists if presenting modally, but I am pretty sure the issue is with StatusBar.
Expected Behavior
Status bar color should remain unchanged when using StatusBar and closing RN view controller.
Code Example
Render code:
Note that nativeCloseVC is a function that calls native to pop this view controller.
This issue was originally created by @CyberMew as facebook/react-native#24083.
Some Info
Integrated RN single view into existing iOS project. Doing a push presentation (not modal).
Existing iOS screen is using
light content
already (i.e. status bar text color is white).🐛 Bug Report
When going back to native app, status bar color always changes back to
default
(i.e. status bar text colour is black) when I renderStatusBar
.To Reproduce
1. Make sure your native app status bar at this point in time is already
lightContent
.2. Present a RN view controller via push. Notice how the status bar is still
light-content
(i.e. white text) because of theStatusBar
code (see code).3. Pop the RN view controller. Observe the color change bug in the status bar.
StatusBar
. Reload your app.I did not test if the problem exists if presenting modally, but I am pretty sure the issue is with
StatusBar
.Expected Behavior
Status bar color should remain unchanged when using
StatusBar
and closing RN view controller.Code Example
Render code:
Note that
nativeCloseVC
is a function that calls native to pop this view controller.Environment
The text was updated successfully, but these errors were encountered: