Reco (react.cordova)
Welcome to Reco
(React+Cordova). Reco unifies React.js and Cordova into one CLI which
bundles both platforms together and provides the developer with the ability to generate Cordova hybrid cross-platform
applications built in React.js. This bundled platform facilitates and automates project initialization,
compilation and build actions for React.js developers who wish to build web/mobile/desktop applications using the powerfull and most vast Cordova environment. Reco is the bundle where both Cordova and React.js platforms merge and work together as one. Enjoy your
coding and development experience using Reco!
Installing Reco CLI npm install -g react.cordova
Initialize a new bundle project
reco init com.example.hello "Hello World"
Note: creates both react-app and cordova-app and then will merge one into the other
Project build
reco build
- Builds
react-app
to publish (in: ./react/build). - Builds
cordova-app
for mobile and other platforms.
Note: will generate an APK installable package for Android devices
Note: will generate an IPA installable package for iOS devices (when running on a mac)
Integrated Cordova CLI
To run Cordova CLI simply prepend the reco
prefix to any Cordova line command
For example:
reco cordova platform add browser
Learn more about Cordova: Cordova Get Started.
Integrated React.js CLI
You can run React.js CLI from within the project's directory
For example:
reco start
reco test
reco install <npm packages for react>
reco react <any react scripts to run>
Learn More about React Apps: Create React App documentation
Learn programming in React.js: React documentation
Prerequisites
npm
get-npm
Java
Recommended version 1.8.0 get-Java
Cordova
On OS X and Linux:
$ sudo npm install -g cordova
On Windows:
C:\>npm install -g cordova
React.js
On OS X and Linux:
$ sudo npm install -g create-react-app
On Windows:
C:\>npm install -g create-react-app
Created by Or Chuban (Choban)
Credits: Arik Wald