Expo Goの公式ウェブサイト:
足場をインストールします。
yarn global add expo-cli
プロジェクトを作成して開始します。
expo init my-app
cd my-app
yarn start
Expo開発者ツール:
携帯電話ダウンロードデバッグソフトウェア:
Expo開発者ツールでQRコードをスキャンするには、携帯電話とコンピューターがiPhoneのカメラと同じローカルエリアネットワークにあることを確認してください。
コード:
コンピューターにAndroidエミュレーションデバッグをインストールします。
android-studioのダウンロードとインストール:
https://android-studio.en.softonic.com/
ダウンロード:android-sdk_r24.4.1-windows.zip
App.js:
import { StatusBar } from 'expo-status-bar';
import { StyleSheet, Text, View } from 'react-native';
export default function App() {
return (
<View style={styles.container}>
<Text style={
{color: "red", fontSize: 50}}>hello,world!</Text>
<StatusBar style="auto" />
</View>
);
}
const styles = StyleSheet.create({
container: {
flex: 1,
backgroundColor: '#fff',
alignItems: 'center',
justifyContent: 'center',
},
});