-
Notifications
You must be signed in to change notification settings - Fork 36
/
App.js
40 lines (35 loc) · 1.19 KB
/
App.js
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
37
38
39
40
import React from 'react';
import {NavigationContainer} from '@react-navigation/native';
import RootNavigator from './src/navigation/RootNavigator';
import {enableScreens} from 'react-native-screens';
import {Colors} from './src/constants/Colors';
import {Provider as AuthProvider} from './src/context/auth/AuthContext';
import {Provider as ProductProvider} from './src/context/product/ProductContext';
import {Provider as CartProvider} from './src/context/cart/CartContext';
import {Provider as OrdersProvider} from './src/context/orders/OrdersContext';
import OneSignal from 'react-native-onesignal';
OneSignal.setLogLevel(6, 0);
OneSignal.setAppId('95ee0575-c468-4644-a3c6-c2e1b0379b0d');
enableScreens();
const App = () => {
return (
<NavigationContainer
theme={{
colors: {
background: `rgb(${Colors.background})`,
text: `rgb(${Colors.text.primary})`,
},
}}>
<AuthProvider>
<ProductProvider>
<CartProvider>
<OrdersProvider>
<RootNavigator />
</OrdersProvider>
</CartProvider>
</ProductProvider>
</AuthProvider>
</NavigationContainer>
);
};
export default App;