This boilerplate aims on writing react code once that runs on all platforms 📱💻🌐🔥
utilizing
- React
- React-Native
- Electron
and
- TypeScript
- Redux
- Jest
- Babel
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.
npm i
cd ios
pod install
npm run ios
npm run android
npm run electron
npm run web
- When the Shell (.sh) scripts can't be executed: Set the bash path (under Windows)
npm config set script-shell "C:\\Program Files\\git\\bin\\bash.exe"
skipped enabling windows because react-native windows works on react-native 0.59 and react-native 0.61 is used
TODO:
function enableWindows() {
console.log('EnableWindows);
execSync('react-native windows', {stdio: 'inherit'});
unlinkSync(resolve('App.windows.js'));
}
enableWindows();
Props to react-everywhere. that template delivered the base for this boilerplate.