1、File ---->New Projectreact
选择React Native ,编辑Locationandroid
2、配置android环境react-native
拷贝可运行项目的local.properties文件至HelloWord的android目录。flex
3、修改App.jsspa
import React, { Component } from 'react'; import { Text, View } from 'react-native'; export default class HelloWorldApp extends Component { render() { return ( <View style={{ flex: 1, justifyContent: "center", alignItems: "center" }}> <Text>Hello, world!</Text> </View> ); } }
4、运行3d