Capacitor works with any web technology to enable web developers to deploy their web apps natively to iOS and Android, and the web as a Progressive Web App.
Capacitor drops into any new or existing web app. To see how to use Capacitor with your frontend tooling of choice, check out the examples in this repo.
- Change into the UI Framework directory of choice, then run
npm install
. - Build the web app:
npm run build
. - Add a native platform:
npx cap add android
ornpx cap add ios
. - Copy the built web app into the native platform:
npx cap copy
. - Open the native IDE and run the app:
npx cap open android
ornpx cap open ios
.
Normally the top-level
android
andios
native project folders are committed to source control. They are excluded here to avoid bloating this repository.