Skip to content

Commit

Permalink
feat: Statusbar color changes if darkMode
Browse files Browse the repository at this point in the history
  • Loading branch information
DannyAziz committed Aug 28, 2021
1 parent b73db74 commit c79ce61
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions App.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
*/

import React from 'react';
import {useColorScheme} from 'react-native';
import {StatusBar} from 'react-native';

import {NavigationContainer} from '@react-navigation/native';
import {createNativeStackNavigator} from '@react-navigation/native-stack';
Expand Down Expand Up @@ -60,9 +60,10 @@ const NativeStack = createNativeStackNavigator();

const App = () => {
// const isDarkMode = useColorScheme() === 'dark';
const isDarkMode = true;
const isDarkMode = false;
return (
<SafeAreaProvider>
<StatusBar barStyle={`${isDarkMode ? 'light' : 'dark'}-content`} />
<ApolloProvider client={client}>
<ThemeProvider theme={isDarkMode ? darkTheme : lightTheme}>
<SearchContextProvider>
Expand Down

0 comments on commit c79ce61

Please sign in to comment.