Skip to content

MateRyze/react-new

 
 

Repository files navigation

react-new ✨

This boilerplate aims on writing react code once that runs on all platforms 📱💻🌐🔥

utilizing

  • React
  • React-Native
  • Electron

and

  • TypeScript
  • Redux
  • Jest
  • Babel

Getting Started 💪

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.

Installation

npm i

iOS

cd ios
pod install

Quick Start

iOS 📱

npm run ios

Android 📱

npm run android

Desktop 💻

npm run electron

Web 🌐

npm run web

Troubleshooting 🐛

  • 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"

Notes 📝

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();

react-everywhere

Props to react-everywhere. that template delivered the base for this boilerplate.

react-everywhere

About

React-Native-Electron-Web

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 22.5%
  • JavaScript 21.5%
  • Objective-C 16.1%
  • Ruby 10.6%
  • Java 10.1%
  • HTML 7.5%
  • Other 11.7%