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
Upgrading from version 4 to 5: White background flashing when switching screens #6626
Comments
Try upgrading to the latest version of stack navigator. I experienced this when using the stack navigator below alpha 46 if im not mistaken |
I'm using |
Please provide a runnable repro |
@satya164 Here's a repro: https://github.com/evanheckert/header-example Running a simulator running iOS 13.3 on a simulated iPhone 11 Pro Max. Symptoms are identical when operating through the latest Expo client app for iOS. |
Which platform? |
I see you are using native stack in your example, this issue was opened for stack navigator. I don't think it's the same thing. Closing this issue due to no response from author. |
Just wrap your navigator in For example:
|
I'm migrating a RN project version 4 to 5.
When switching screens there's an issue with a white background flashing in.
In v4 this was solved by setting
cardStyle: { backgroundColor: material.containerBgColor }
in theStackNavigation
options.However in v5 I'm unable to fix it with the same approach:
<Stack.Navigator screenOptions={{ cardStyle: { backgroundColor: material.containerBgColor } }} ...>
White flash has come back. Any idea how to fix it? The docs don't tell too much about the
ScreenOptions
object, or is this me not being able to find it?The structure of the navigation may be important:
Going from ScreenD to ScreenE does the flashing issue. I'm not sure about the other screens as they don't make any network request / async stuff.
The text was updated successfully, but these errors were encountered: