react-native template to target multiple platforms :globe_with_meridians: :iphone: :computer: with single codebase.
create-react-app
).npm install -g react-native-cli
)react-native-cli
and specifyre-base
as a template:
react-native init <Your Project Name> --template re-base
re-dux
or re-route
, install them directly on top ofyes
to overwrite the needed files.
react-native init <Your Project Name> --template re-dux
react-native init <Your Project Name> --template re-route
react-native init <Your Project Name> --template re-start
re-start
template depend of both re-route
and re-dux
, be sure toreact-native-template
doesn’t support adding custom scripts topackage.json
, exec ./finishInstall.js
to finish the project
npm/yarn run android
npm/yarn run ios
In case of problems, this
tutorial
will help you to configure your environment.
npm/yarn run electron
npm/yarn run web
npm/yarn run windows
Windows platforms needs to have installed the Windows 10 SDK Build 14393
to be
able to be build. A certificate is needed to sign the binary, follow the
instructions.aspx)
to create or update the sign certificate. After that, a pop-up window would
appear during the first time you exec the build process asking to install the
certificate you’ve just created, just accept it.
npm/yarn run android:release
npm/yarn run electron:release
If you are running this on Linux or OSX, this will need you have wine
1.6
installed in your system because setting the Windows app icon makes usage
internally of the node-rcedit package.
npm/yarn run ios:release
npm/yarn run web:release
This will build your production ready bundle
npm/yarn run windows:release
Thanks goes to these wonderful people (emoji key):
Amogh Banta 💻 🎨 📖 🐛 🤔 ⚠️ |
Jesús Leganés-Combarro 💻 🤔 🐛 ⚠️ 👀 📖 |
Ankit Popli 👀 🤔 🐛 |
Christopher Hein 📖 🐛 |
DuncanMacWeb 💻 |
---|---|---|---|---|
Full list of contributors can be found here.
re-start
‘s developmentMIT