Skip to content

getshifter/example-ionic-react-capacitor

Repository files navigation

Ionic React with Capacitor example

Just try the demo site

You can deploy the demo site to the following services.

amplifybutton

netlifybutton

Getting started

$ git clone git@github.com:getshifter/example-ionic-react-capacitor.git
$ cd example-ionic-react-capacitor
$ npm install
$ npm start

Production build

$ npm run build

iOS

We can run it as a ios application using XCode.

$ npx cap add ios
$ yarn run build 
$ npx cap sync
$ npx cap open ios

Desktop application

We can run it as a Desktop application

$ npx cap add electron
$ yarn run build 
$ npx cap sync
$ npx cap open electron

Build for Desktop

$ yarn run build && npx cap copy
$ cd electron
$ npx electron-packager . sample --platform=darwin --arch=x64
$ open ./sample-darwin-x64