Fix minor details

Signed-off-by: Nikolaos Karaolidis <nick@karaolidis.com>
This commit is contained in:
2023-07-09 10:36:21 +03:00
parent 2c5bd7cda2
commit a93630e1e9
5 changed files with 16 additions and 16 deletions

View File

@@ -10,7 +10,8 @@ import { SettingsProvider } from './contexts/settings';
function App(): JSX.Element {
const colorScheme = Appearance.getColorScheme();
const theme = colorScheme === 'dark' ? lightTheme : darkTheme;
const isDarkMode = colorScheme === 'dark';
const theme = isDarkMode ? darkTheme : lightTheme;
return (
<RealmProvider schema={[Meme, Tag]}>
@@ -19,7 +20,7 @@ function App(): JSX.Element {
<SafeAreaProvider>
<StatusBar
barStyle={
colorScheme === 'dark' ? 'dark-content' : 'light-content'
isDarkMode ? 'light-content' : 'dark-content'
}
backgroundColor={theme.colors.background}
/>