-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.android.js
More file actions
61 lines (47 loc) · 1.32 KB
/
index.android.js
File metadata and controls
61 lines (47 loc) · 1.32 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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
"use strict";
import React, {
AppRegistry,
Component,
StyleSheet,
Text,
View,
Image,
TextInput,
TouchableHighlight,
Navigator,
ScrollView,
TouchableOpacity,
} from "react-native";
import Login from "./src/Login";
import {BookedRidesScene} 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));
const SCENES = {
BOOKED_RIDES: {scene: <BookedRidesScene />},
};
function renderScene(route, navigator) {
return <route.component route={route} navigator={navigator} />;
}
class MatchRiderGO extends Component {
render() {
const initialRoute = {
component: Login
};
return (
<Provider store={store}>
<Navigator
configureScene={() => Navigator.SceneConfigs.HorizontalSwipeJump}
initialRoute={initialRoute}
renderScene={renderScene}
/>
</Provider>
);
}
}
AppRegistry.registerComponent("MatchRiderGO", () => MatchRiderGO);