//index.android.js
'use strict'; import React, { AppRegistry, Component, Navigator, } from
'react-native'; import SplashScreen from './splash.js' index.android.js class
AwesomeProject extends Component { render() { var defaultComponent =
SplashScreen;return ( <Navigator initialRoute={{ name: 'Splash', component:
defaultComponent }} configureScene={(route) => {return
Navigator.SceneConfigs.HorizontalSwipeJumpFromRight; } } renderScene={(route,
navigator) => { let Component = route.component;return <Component
{...route.params} navigator={navigator} /> } } /> ); } }
AppRegistry.registerComponent('AwesomeProject', () => AwesomeProject);
//splash.js
'use strict' import React, { Component, Image, StyleSheet, } from
'react-native' import MainPage from './mainpage.js'; export default class
SplashScreen extends Component { constructor(props) { super(props); var
{navigator} = props; setTimeout(() => { navigator.replace({ name: 'MainPage',
component: MainPage }) },1000); } render() { return( <Image source={require(
'./img/hello.jpg') } style={styles.backimagestyle}/> ); } } const styles =
StyleSheet.create({ backimagestyle: { flex: 1, justifyContent: 'center',
alignItems:'center', width: null, height: null, resizeMode: 'cover' } });
//mainpage.js
'use strict' import React, { Component, Image, StyleSheet, View, Text, } from
'react-native' export default class MainPage extends Component { render() {
return ( <View> <Text> hello world </Text> </View> ); } }

技术
©2019-2020 Toolsou All rights reserved,
Centos7 下mysql8.0的安装以及修改初始密码;mybatis-config.xml设置默认值配置【Python】读取txt文件,获取指定行中指定位置数据Hack Bar 2.1.2 按F9没反应vue vue-element-admin项目踩坑小结C语言表白练习小程序(适合初学者)element-ui的el-date-picker组件获取值Go语言 数组初始化和基本操作element ui 下拉框搜索功能springboot多配置文件配置