forked from kqz2014/House
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.ios.js
More file actions
executable file
·36 lines (33 loc) · 835 Bytes
/
index.ios.js
File metadata and controls
executable file
·36 lines (33 loc) · 835 Bytes
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
/**
* Sample React Native App
* https://github.com/facebook/react-native
* @flow
*/
import React, { Component } from 'react';
import {
AppRegistry,
StyleSheet,
Text,
Navigator,
View
} from 'react-native';
import main from './project/main';
export default class App extends Component {
render() {
return (
<Navigator
//ref='navigator'
initialRoute={{ name: 'main', component: main }}
// configureScene={(route) => {
// return Navigator.SceneConfigs.VerticalUpSwipeJump;
// } }
renderScene={(route, navigator) => {
let Component = route.component;
//_navigator = navigator;
return <Component {...route.params} navigator={navigator} />
} }
/>
);
}
}
AppRegistry.registerComponent('House', () => App);