-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathApp.tsx
30 lines (28 loc) · 865 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
import React, { Component } from 'react';
import { Provider } from 'react-redux';
import { createStore, applyMiddleware } from 'redux';
import createSageMiddleware from 'redux-saga';
import rootRducer from './src/redux/reducers';
import watchers from './src/redux/sagas';
import Main from './src/Main';
import { StatusBar } from 'react-native';
import { colors } from './src/constants';
import * as Sentry from '@sentry/react-native';
import { DSN_KEY } from '@env';
const saga = createSageMiddleware();
export const store = createStore(rootRducer, applyMiddleware(saga));
saga.run(watchers);
Sentry.init({
dsn: DSN_KEY
});
export class App extends Component {
render() {
return (
<Provider store={store}>
<StatusBar hidden={false} barStyle="light-content" />
<Main />
</Provider>
);
}
}
export default Sentry.wrap(App);