-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathindex.ios.js
37 lines (30 loc) · 1.01 KB
/
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
31
32
33
34
35
36
37
/**
* Sample React Native App
* https://github.com/facebook/react-native
* @flow
*/
import React, { Component } from 'react';
import { AppRegistry } from 'react-native';
import { Scene, Router } from 'react-native-router-flux'
import { connect, Provider } from 'react-redux';
import Login from './components/Login';
import Home from './components/Home';
import Product from './components/Product';
import store from './store';
const RouterWithRedux = connect()(Router);
export default class App extends Component {
render() {
return (
<Provider store={store}>
<RouterWithRedux>
<Scene key="root">
<Scene key="login" initial={true} component={Login} title="Login" hideNavBar={true} />
<Scene key="home" component={Home} title="Home" hideNavBar={true} />
<Scene key="product" component={Product} title="Product" hideNavBar={true} />
</Scene>
</RouterWithRedux>
</Provider>
)
}
}
AppRegistry.registerComponent('olz', () => App);