Fix status bar not being dark on light mode

This commit is contained in:
Brandon Presley 2022-08-27 13:40:16 +12:00
parent 54e0809568
commit cf55711ae3
1 changed files with 1 additions and 2 deletions

View File

@ -5,7 +5,7 @@ import {
NavigationContainer,
} from '@react-navigation/native';
import React, {useEffect, useState} from 'react';
import {StatusBar, useColorScheme} from 'react-native';
import {useColorScheme} from 'react-native';
import {
DarkTheme as PaperDarkTheme,
DefaultTheme as PaperDefaultTheme,
@ -94,7 +94,6 @@ const App = () => {
settings={{icon: props => <Ionicon {...props} />}}>
<NavigationContainer
theme={dark ? CombinedDarkTheme : CombinedDefaultTheme}>
<StatusBar barStyle={dark ? 'light-content' : 'dark-content'} />
<SnackbarContext.Provider value={{toast}}>
<Routes db={db} />
</SnackbarContext.Provider>