-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.ios.js
More file actions
41 lines (36 loc) · 1.04 KB
/
index.ios.js
File metadata and controls
41 lines (36 loc) · 1.04 KB
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
38
39
40
41
'use strict';
import React, {
AppRegistry,
Component,
StyleSheet,
Text,
View,
Image,
TextInput,
TouchableHighlight,
Navigator
} from 'react-native';
import Login from "./src/Login";
import BookedRides from "./src/BookedRides";
import { AccountScene } from "./src/Account";
import { Provider } from 'react-redux';
import { createStore, applyMiddleware } from "redux";
import reducer, {initialState} from "./src/flux/reducer";
import * as actionCreators from "./src/flux/actionCreators";
import actionMiddleware from "./src/flux/actionMiddleware";
import { connect } from 'react-redux';
let store = createStore(reducer, initialState, applyMiddleware(actionMiddleware));
class MatchRiderGO extends Component {
render() {
return (
<Provider store={store}>
<Navigator
initialRoute={{name: "Login", index: 0}}
renderScene={(route, navigator) => <BookedRides/>}
/>
</Provider>
);
}
}
const styles = StyleSheet.create({});
AppRegistry.registerComponent('MatchRiderGO', () => MatchRiderGO);