-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.js
31 lines (27 loc) · 832 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
31
import React from 'react';
import App from './src/App';
import configureStore from './src/store/configureStore';
import DropdownAlert from 'react-native-dropdownalert';
import { AppRegistry, View} from 'react-native';
import {name as appName} from './app.json';
import {Provider} from 'react-redux';
import {DropDownHolder} from './src/common/dropalert';
const store = configureStore();
const flex = {flex: 1};
const padding = {padding: 10};
const application = () => {
return (
<View style={flex}>
<Provider store={store}>
<App />
</Provider>
<DropdownAlert
updateStatusBar={false}
defaultContainer={padding}
ref={ref => DropDownHolder.setDropDown(ref)}
closeInterval={6000}
/>
</View>
);
};
AppRegistry.registerComponent(appName, () => application);