-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.ios.js
30 lines (26 loc) · 990 Bytes
/
index.ios.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
/**
* Sample React Native App
* https://github.com/facebook/react-native
*/
import React, {AppRegistry, Component, StyleSheet} from 'react-native';
import ExNavigator from '@exponent/react-native-navigator';
import ThrifteeRouter from './App/config/routes';
import thunkMiddleware from 'redux-thunk';
import { Provider } from 'react-redux';
import { createStore, applyMiddleware } from 'redux';
import rootReducer from './App/Redux/indexReducer';
const createStoreWithMiddleware = applyMiddleware(thunkMiddleware)(createStore);
import styles from './App/Styles/defaultStyles';
class LocalVisaMarket extends Component {
render() {
return (
<Provider store={createStoreWithMiddleware(rootReducer)}>
<ExNavigator initialRoute={ThrifteeRouter.getHomeRoute()}
navigationBarStyle={styles.navBar}
barButtonIconStyle={styles.barButton}
/>
</Provider>
);
}
}
AppRegistry.registerComponent('LocalVisaMarket', () => LocalVisaMarket);