-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.js
30 lines (28 loc) · 854 Bytes
/
index.js
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 from 'react';
import { AppRegistry } from 'react-native';
import App from './src/App';
// redux
import { createStore, applyMiddleware } from 'redux';
import { Provider } from 'react-redux';
import rootReducer from './src/reducers';
import thunk from 'redux-thunk';
const store = createStore(rootReducer, applyMiddleware(thunk));
// Amplify
import config from './src/aws-exports';
import Amplify from 'aws-amplify';
// hide isMounted() warnings due to them being in node_modules
import { YellowBox } from 'react-native';
YellowBox.ignoreWarnings([
'Warning: isMounted(...) is deprecated',
'Module RCTImageLoader',
'Module RNFetchBlob',
'Class RCTCxxModule'
]);
Amplify.configure(config);
// App
const ReduxApp = () => (
<Provider store={store}>
<App />
</Provider>
);
AppRegistry.registerComponent('Whirl', () => ReduxApp);