-
Notifications
You must be signed in to change notification settings - Fork 8
/
index.android.js
36 lines (32 loc) · 922 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
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,
View,
Navigator
} from 'react-native';
/**-------导入外部的组件类---------**/
var LaunchImage = require('./Component/Main/LaunchImage');
class XMGBuy extends Component {
render() {
return (
<Navigator
initialRoute={{name:'启动页',component:LaunchImage}}
configureScene={()=>{
return Navigator.SceneConfigs.PushFromRight;
}}
renderScene={(route,navigator)=>{
let Component = route.component;
return <Component {...route.passProps} navigator={navigator}/>;
}}
/>
);
}
}
AppRegistry.registerComponent('weishancheng', () => XMGBuy);