Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/mhartington/native-sample-react


https://github.com/mhartington/native-sample-react

Last synced: 15 days ago
JSON representation

Awesome Lists containing this project

README

        

Capacitor Demo app

# Setup

- Install and configure iOS Native SDKs. See the Capacitor environment guide [here](https://capacitorjs.com/docs/v3/getting-started/environment-setup#ios-development)
- Install and configure Android Native SKD. See the Capacitor environment guide [here](https://capacitorjs.com/docs/getting-started/environment-setup#android-development)
- Clone the project
- run `npm install`

# Building iOS

- Run a build of the React app: `npm run build`
- Sync the native project and web project: `npx cap sync ios`
- Open native project: `npx cap open ios`
- Build and deploy to a simulator or native device. Details can be found [here](https://capacitorjs.com/docs/ios#running-in-xcode)

# Building Android

- Run a build of the React app: `npm run build`
- Sync the native project and web project: `npx cap sync android`
- Open native project: `npx cap open android`
- Build and deploy to a simulator or native device. Details can be found [here](https://capacitorjs.com/docs/android#running-with-android-studio)