Git Product home page Git Product logo

react-native-web-starter's Introduction

React Native Web Starter

Introduction

This repo is intending to provide an easy starting point for developers looking to make fully cross platform applications across both web with React Native Web and mobile with Expo.

All branches represent a particular starting point.

It is bootstrapped with Create React App so you can run yarn web in order to start up the development web server with all the hot reloading goodness you've come to expect.

It has then been integrated with Create React Native App and running yarn ios or yarn android will start the Expo packager. You can also run the project from the Expo XDE program.

Branches

Branch Description
master The most minimal possible boilerplate, will always be the case
redux Implements redux reducers, actions, store and connection including example
navigation-react-router Using react-router-dom, react-router-native and react-router-navigation in order to have a platform agnostic navigation solution including native look at feel on phones
typescript Uses the TypeScript compiler with command yarn watch to track file changes and compile on the fly for stronger typed RNW code

Get Started

Clone the branch with the starting point you want and just rename the project (don't forget the package.json, Run git remote rm origin && yarn to remove the ref to this repo and install node_modules then you're good to go. ๐Ÿ™‚

A full list of the scripts defined in package.json is shown below.

Script Action
yarn web Start CRA Development Build
yarn build-web Create production build for web
yarn eject-web Eject from CRA
yarn start-native Start the Expo packager
yarn eject-native Eject from Expo
yarn android Start expo packager and install app to Android Emulator
yarn ios Start expo packager and install app to iOS Simulator
yarn test-native Run testing script for mobile app
yarn test-web Run testing script for web app
yarn test Run both testing scripts

Future Plans for this Library

The aim for this library is to make several branches that have different starting points i.e. Navigation, Auth etc.

Master branch will always be the most minimal starting point.

I'm also toying with the idea of doing a starting point with React Native CLI instead of Expo however that will mean the UI for mobile will less predictiable than developing with Expo.

If you have any ideas for a boilerplate then please create an issue or even better a pull request! I'm hoping to get this repo to be a big hub for getting started with React Native Web with tutorials etc.

Tasks

  • Get jest working properly
  • TypeScript
  • ReasonML

Credit

react-native-web-starter's People

Contributors

joefazz avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.