From 6c73b88aebda76309978d5619e79a7336d4cbc22 Mon Sep 17 00:00:00 2001 From: William Van Haevre Date: Wed, 8 May 2024 11:12:14 +0200 Subject: [PATCH] Use different bgColor on web versus mobile --- example/src/navigators/NavigationConfig.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/example/src/navigators/NavigationConfig.ts b/example/src/navigators/NavigationConfig.ts index ea459aba1..15b8c8422 100644 --- a/example/src/navigators/NavigationConfig.ts +++ b/example/src/navigators/NavigationConfig.ts @@ -1,4 +1,7 @@ import { DarkTheme } from '@react-navigation/native'; +import { Platform } from 'react-native'; + +const backgroundColor = Platform.OS === 'web' ? 'transparent' : 'black'; export const navTheme = { ...DarkTheme, @@ -6,7 +9,7 @@ export const navTheme = { colors: { ...DarkTheme.colors, primary: '#FFC50F', - background: 'transparent', + background: backgroundColor, }, };