/MSaaS-Client

MSaaS Client using React Native with Expo

Primary LanguageTypeScript

MSaaS-Client


Setup

npm install --global expo-cli yarn
cd MSaaS-Client
yarn
yarn start
# You can also optimize blobs after adding new assets
npx expo-optimize

Use Expo Go app on your phone or web browser for development

OpenAPI Code Generation

openapi-generator generate -i https://msaas.app.ncj.wiki/api/swagger/v1/swagger.json -g typescript-fetch

Build

iOS

cd ios
pod install

Then open the XCode workspace, and build a release app. The script will create a js bundle automatically.

Android

It seems AS will not build the js bundle automatically, so you have to build it yourself.

react-native bundle --platform android --dev false --entry-file index.js --bundle-output android/app/src/main/assets/index.android.bundle --assets-dest android/app/src/main/res
cd android
./gradlew assembleRelease

Sign the app if you want.

Docs & Refs

Below are docs and references that might be useful