-
Notifications
You must be signed in to change notification settings - Fork 0
/
App.tsx
32 lines (30 loc) · 947 Bytes
/
App.tsx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
import React from 'react';
import {StyleSheet, View, StatusBar, useColorScheme} from 'react-native';
import SystemNavigationBar from 'react-native-system-navigation-bar';
import MainScreen from './src/routes/routes';
import GlobalContext from './src/lib/Store';
import {useTheme} from '@react-navigation/native';
export default function App(props: any) {
const {} = props;
const scheme = useColorScheme();
//=========System navigation Bar color Styling============
SystemNavigationBar.setNavigationColor(
scheme === 'dark' ? '#48404A' : '#ffffff',
);
return (
<GlobalContext>
<View style={styles.container}>
<StatusBar
barStyle={scheme === 'dark' ? 'light-content' : 'dark-content'}
backgroundColor={scheme === 'dark' ? '#302832' : '#ffffff'}
/>
<MainScreen />
</View>
</GlobalContext>
);
}
const styles = StyleSheet.create({
container: {
flex: 1,
},
});