-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathApp.tsx
33 lines (31 loc) · 1.08 KB
/
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
import { NativeModules, Platform, SafeAreaView } from 'react-native';
import Router from './src/Router';
import { Provider } from 'react-redux';
import { store } from './src/core/store/store';
import { AuthProvider } from './src/provider/AuthProvider';
import { NotifProvider } from './src/provider/NotifProvider';
import { NavigationContainer } from '@react-navigation/native';
import { TimeProvider } from './src/provider/TimeProvider';
import { FavoritesProvider } from './src/provider/FavoritesProvider';
const { StatusBarManager } = NativeModules;
export default function App() {
return (
<Provider store={store}>
<SafeAreaView style={{
flex: 1,
backgroundColor: "#fff",
paddingTop: Platform.OS !== 'android' ? StatusBarManager.HEIGHT : 0,
}}>
<NavigationContainer>
<NotifProvider>
<AuthProvider>
<FavoritesProvider>
<Router />
</FavoritesProvider>
</AuthProvider>
</NotifProvider>
</NavigationContainer>
</SafeAreaView>
</Provider>
);
}