# React Native 01 Why using Expo platform ? 1. Let the writer can focus on Javascript, don't need to deel with Native 2. Provide some useful API in it's library 3. Build the project and test it on phones(Android or IOS) in realtime with the app(expo go) on phones 4. Can release the app in .apk or .ipa ,without open neither XCode nor Android Studio ## Install * [Node.js](https://nodejs.org/zh-tw/download/) * [Expo CLI](https://docs.expo.dev/get-started/installation/) ## Set up ```shell= npx create-expo-app --template ``` ```shell= ? Choose a template: ยป - Use arrow-keys. Return to submit. ----- Managed workflow ----- > blank a minimal app as clean as an empty canvas blank (TypeScript) same as blank but with TypeScript configuration tabs (TypeScript) several example screens and tabs using react-navigation and TypeScript ----- Bare workflow ----- minimal bare and minimal, just the essentials to get you started ``` * You can choose some sample project (I choose the first one), after init the project done ```shell= cd my-app npx expo --tunnel ``` ![image](https://hackmd.io/_uploads/S1dLauk6T.png) * Download app Expo Go on phone and scan the Qrcode with phone, the project will build on the phone, bellow is the init project after build ![](https://i.imgur.com/s3dPajA.png =250x)
{"metaMigratedAt":"2023-06-17T05:52:22.420Z","metaMigratedFrom":"YAML","title":"React Native Day 01","breaks":false,"description":"Build the environment which is required to run the project","contributors":"[{\"id\":\"84b5bef2-844a-4b79-8796-6b27e8bf41be\",\"add\":1736,\"del\":261}]"}
Expand menu