-
Notifications
You must be signed in to change notification settings - Fork 0
/
App.tsx
34 lines (29 loc) · 873 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
31
32
33
34
import { createStore, applyMiddleware } from 'redux'
import createSagaMiddleware from 'redux-saga'
import { Provider } from "react-redux"
import React from 'react'
import reducer from "./store/reducer"
import MainApp from "./MainApp"
import Amplify from 'aws-amplify';
import awsconfig from './aws-exports';
import * as Sentry from 'sentry-expo';
import sagas from "store/saga";
import { composeWithDevTools } from 'redux-devtools-extension'
const sagaMiddleware = createSagaMiddleware()
const store = createStore(
reducer,
composeWithDevTools(applyMiddleware(sagaMiddleware))
)
sagaMiddleware.run(sagas);
const App = () => {
Amplify.configure(awsconfig);
Sentry.init({
dsn: 'https://[email protected]/6041985'
});
return (
<Provider store={store}>
<MainApp />
</Provider>
)
}
export default App