andongfan / MSaaS-Client

MSaaS Client using React Native with Expo

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

MSaaS Client using React Native with Expo


Languages

Language:TypeScript 55.7%Language:JavaScript 34.9%Language:Java 5.2%Language:Objective-C 2.7%Language:Starlark 1.0%Language:Ruby 0.3%Language:Dockerfile 0.1%Language:Swift 0.1%Language:C 0.1%