WebStrom之React Native之HelloWord 【Windows】

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

相關文章
相關標籤/搜索