Cordova Typescript React App Boilerplate
Cordova Typescript React App
A simple
The package uses create-react-app
and the default configurations that come with that. This should make it easy to upgrade to newer versions of react in the future.
📚 Table of Contents
📦 Installation
1. Prerequisites
- NPM installed
- Note: It's recommended to use NPM for this project as Cordova defaults to this manager
- Read the Cordova Documentation
- Cordova installed and setup locally
2. Use Cordova's Template Installer
Install the template with the following command:
cordova create hello com.example.hello HelloWorld --template @tomnlittle/react-typescript-cordova
3. Install
Once your template has been copied across, use npm
to install all the dependencies.
npm install
4. Add your target platform
Cordova Platform Documentation
Add one or more of the following platforms
Browser
cordova platform add browser
iOS
cordova platform add ios
Android
cordova platform add android
🚀 Usage
Running on your platform
Run on your platform
npm run cordova YOUR_PLATFORM
Example:
npm run cordova ios
Running with Create React App
npm start
📝 Contributing
Please contribute using Github Flow. Create a branch, add commits, and open a pull request.