-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathApp.tsx
29 lines (26 loc) · 962 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
// IMPORTANT: The following 2 packages should be imported in this order:
import './src/utils/polyfill';
import './src/utils/setSettings';
// NOTE: The rest can be imported in any order
import React from 'react';
import { Provider as PaperProvider } from 'react-native-paper';
import 'expo-dev-client';
import theme from './src/utils/theme';
import { SafeAreaProvider } from 'react-native-safe-area-context';
import ErrorHandlerProvider from './src/providers/ErrorHandler';
import Debug from 'debug';
import { wrap } from './src/utils/sentry';
import InitializeAppProvider from './src/providers/InitializeApp';
Debug.enable(process.env.DEBUG);
console.log('DEBUG:', process.env.DEBUG);
function App() {
return (
<PaperProvider theme={theme}>
<SafeAreaProvider>
<ErrorHandlerProvider />
<InitializeAppProvider />
</SafeAreaProvider>
</PaperProvider>
);
}
export default wrap(App);