Skip to content

Commit

Permalink
Use different bgColor on web versus mobile
Browse files Browse the repository at this point in the history
  • Loading branch information
wvanhaevre committed May 8, 2024
1 parent 5ee06af commit 6c73b88
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion example/src/navigators/NavigationConfig.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,15 @@
import { DarkTheme } from '@react-navigation/native';
import { Platform } from 'react-native';

const backgroundColor = Platform.OS === 'web' ? 'transparent' : 'black';

export const navTheme = {
...DarkTheme,
dark: true,
colors: {
...DarkTheme.colors,
primary: '#FFC50F',
background: 'transparent',
background: backgroundColor,
},
};

Expand Down

0 comments on commit 6c73b88

Please sign in to comment.