-
-
Notifications
You must be signed in to change notification settings - Fork 5k
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
createAppContainer background cannot be transparent #6297
Comments
Noticed that during a package update on my app. I'm using react-navigation@3.11.1, but I guess it could be applied to 4.0.0 as-well.
I believe it's related to 12.4 update on the simulators, which include some of the new iOS 13 dark/light modes. Anyways, this should be further addressed and the Hope this helps! |
@dmitov great find thank you. Works for me (after seeing the same issue upon updating react-navigation) |
Finer explanation for the issue and workaround is here: |
@dmitov indeed the holy grail, thank you :) ... although types are not aware of this solution 🤔 export const RootStackNavigator = createStackNavigator(
{
Home: HomeScreen,
Modal: ModalDialogScreen,
},
{
mode: 'modal',
headerMode: 'none',
transparentCard: true,
transitionConfig: () => ({
containerStyle: {
backgroundColor: 'transparent',
},
containerStyleLight: {
backgroundColor: 'transparent',
},
containerStyleDark: {
backgroundColor: 'transparent',
},
}),
defaultNavigationOptions: {
gesturesEnabled: false,
},
} as any, // needs to be any to prevent type issues
); |
Hello 👋, this issue has been open for more than 2 months with no activity on it. If the issue is still present in the latest version, please leave a comment within 7 days to keep it open, otherwise it will be closed automatically. If you found a solution on workaround for the issue, please comment here for others to find. If this issue is critical for you, please consider sending a pull request to fix the issue. |
The issue tracker is reserved for bug reports only.
Current Behavior
Expected Behavior
The ImageBackground shows the image.
How to reproduce
tempNavigator.js
Settings.js
Your Environment
| software | version
| Visual Code | 1.38.1
| react-navigation | 4.0.0
| react-native | 0.60.5
| node | 12.6.0
| npm or yarn | 6.9.0
The text was updated successfully, but these errors were encountered: