-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathApp.js
More file actions
42 lines (35 loc) · 881 Bytes
/
App.js
File metadata and controls
42 lines (35 loc) · 881 Bytes
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
41
42
/**
* Sample React Native App
* https://github.com/facebook/react-native
*
* @format
* @flow
*/
import React from 'react';
import {YellowBox} from 'react-native';
import Navigator from './src/navigation/Navigator';
import {ThemeProvider} from 'react-native-elements';
import AppContextProvider from './src/context/AppContext';
import * as Sentry from '@sentry/react-native';
Sentry.init({
dsn: 'https://15ef774899424f35ba3e142acd208947@sentry.io/1833934',
});
class App extends React.Component {
constructor() {
super();
YellowBox.ignoreWarnings([
'Warning: componentWillMount is deprecated',
'Warning: componentWillReceiveProps is deprecated',
]);
}
render() {
return (
<ThemeProvider>
<AppContextProvider>
<Navigator />
</AppContextProvider>
</ThemeProvider>
);
}
}
export default App;