Skip to content

Nestoro/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
  • 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 📱

start your emulator or connect a device with usb debugging enabled

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

react-everywhere

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

react-everywhere

License

React-new is MIT licensed. By contributing to React-new, you agree that your contributions will be licensed under its MIT license.

Changelog

v0.0.3

  • audit fix to get rit of a lot of vunerabilities
  • changed entry Point to FunctionComponent because in all projects i used this boilerplate there was no reason not to do so (and even reason to do so)
  • removed windows specific stuff since react-native-windows doesn't seem to receive a update any time soon

v0.0.2

  • Removed Redux because its functionality is now provided through react hooks