forked from mapswipe/mapswipe
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.js
More file actions
35 lines (29 loc) · 964 Bytes
/
index.js
File metadata and controls
35 lines (29 loc) · 964 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
/** @format */
// @flow
import React from 'react';
import { AppRegistry } from 'react-native';
import { Provider } from 'react-redux';
import * as Sentry from '@sentry/react-native';
import { PersistGate } from 'redux-persist/integration/react';
import './src/shared/i18n';
import Main from './src/shared/Main';
import { name as appName } from './app';
import setupStore from './src/shared/store';
Sentry.init({
dsn: 'https://b5a9356c68a4484c9891484f8a12d016@sentry.io/1326755',
});
type Props = {};
const { store, persistor } = setupStore();
// eslint-disable-next-line react/prefer-stateless-function
class ConnectedApp extends React.Component<Props> {
render() {
return (
<Provider store={store}>
<PersistGate loading={null} persistor={persistor}>
<Main />
</PersistGate>
</Provider>
);
}
}
AppRegistry.registerComponent(appName, () => ConnectedApp);