Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/yanglee2421/example

Example of Expo App
https://github.com/yanglee2421/example

expo react-native

Last synced: about 2 months ago
JSON representation

Example of Expo App

Awesome Lists containing this project

README

        

# Expo App

## Set Building Environment

[Expo Documation](https://docs.expo.dev/guides/local-app-production/)

```powershell
# Install chocolatey
Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://community.chocolatey.org/install.ps1'))

# Install JDK
choco install -y microsoft-openjdk17

# Install Android SDK
sdkmanager "platform-tools" "build-tools;34.0.0"

# Expo build
expo prebuild
cd ./android

# Prepare keystore
keytool -genkey -v -keystore my-upload-key.keystore -alias my-key-alias -keyalg RSA -keysize 2048 -validity 10000

# For .aab
./gradlew app:bundleRelease
# For .apk
./gradlew app:assembleRelease
# Or build by Expo
expo build:android

# Install Emulator
sdkmanager "emulator" "platforms;android-34" "system-images;android-34;google_apis;x86_64"
avdmanager create avd -n emulatorName -k "system-images;android-34;google_apis;x86_64" -d "pixel"
emulator -avd emulatorName -gpu host
```

## Set Development Environment

1. Install WSL

```powershell
# Install Ubuntu
wsl --install
# Unistall Ubuntu
wsl --list
wsl --uninstall Ubuntu
```

2. Ubuntu Bash

```bash
# Install pnpm
curl -fsSL https://get.pnpm.io/install.sh | sh -

# Install nodejs
pnpm env use -g lts
```