-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.android.js
30 lines (26 loc) · 932 Bytes
/
index.android.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
* @flow
*/
import React, { Component } from 'react';
import {
AppRegistry,
} from 'react-native';
import CDLaunchPage from './app/main/CDLaunchPage';
import NavigationExperimental from 'react-native-deprecated-custom-components';
export default class Reading extends Component {
render() {
return (
<NavigationExperimental.Navigator
initialRoute={{ name: 'launchPage', component: CDLaunchPage }}
configureScene={(route, routeStack) => NavigationExperimental.Navigator.SceneConfigs.PushFromRight}
renderScene={(route, navigator) => {
let Component = route.component;
return <Component {...route.props} navigator={navigator} />
}}
/>
);
}
}
AppRegistry.registerComponent('Reading', () => Reading);