-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathApp.tsx
36 lines (30 loc) · 812 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
33
34
35
36
import React, {useEffect} from 'react';
import {StatusBar, StyleSheet, View, LogBox} from 'react-native';
import {AppProvider, AuthProvider} from './src/contexts';
import {colors} from './src/constants';
import Navigator from './src/navs';
import {NoInternet} from './src/components';
export default function App() {
useEffect(() => {
LogBox.ignoreLogs(['VirtualizedLists should never be nested']);
}, []);
return (
<AuthProvider>
<AppProvider>
<View style={styles.container}>
<StatusBar
backgroundColor={colors.primary}
barStyle="light-content"
/>
<NoInternet />
<Navigator />
</View>
</AppProvider>
</AuthProvider>
);
}
const styles = StyleSheet.create({
container: {
flex: 1,
},
});