Skip to content

Latest commit

 

History

History
97 lines (67 loc) · 2.5 KB

File metadata and controls

97 lines (67 loc) · 2.5 KB

🪴 Local Plants - Expo App

Build with Expo and Jazz.

Get started

Copy the .env file to .env.local and adjust the default values. Then you can install dependencies and start the app:

pnpm add expo -w
npx expo install --pnpm # install dependencies in root folder
cd packages/expo-app
npm start

Now this alone doesn't give you very much, because some kind of build still needs to run on some iOS/Android device or simulator. Theoretically you could use Expo Go, but this app has grown out of that limited setup quite quickly.

Local builds

iOS Simulator

Follow this guide to install Xcode and set up a simulator:
https://docs.expo.dev/workflow/ios-simulator/

To get the app onto the simular, run:

pnpm run build:ios:preview

and then drag the builds/preview/*.ipa file onto the simulator.

Android Emulator

Follow this guide to install Java, Android Studio and Android Emulator:
https://docs.expo.dev/workflow/android-studio-emulator/

To get the app onto the emulator, run:

pnpm run build:android:preview

and then drag the builds/preview/*.apk file onto the emulator.

iOS Devices

In Xcode, open Window > Devices & Simulators. Connect you phone or whatever via USB once if it's not already listed under Devices and then run:

pnpm run build:ios:dev

Drag the builds/dev/*.ipa file onto the "Installed Apps" section for your device to install the app.

If the app doesn't seem to install you may need to focus the Xcode device window because it may need to reconnect.

Android Device

TODO

pnpm run build:android:dev

Expo builds

TODO

Activate developer mode on your phone

  • Open Settings: Go to your device’s Settings.
  • Navigate to Privacy & Security: Scroll down and tap on Privacy & Security.
  • Activate Developer Mode: Scroll to the bottom and find Developer Mode. Tap it.

Docs