GithubHelp home page GithubHelp logo

phpsmarter / react-native-everywhere Goto Github PK

View Code? Open in Web Editor NEW

This project forked from react-everywhere/re-start

0.0 2.0 0.0 159 KB

Starter kit to target multiple platforms :globe_with_meridians: :iphone: :computer: with react-native' APIs.

Home Page: https://medium.com/@amoghbanta/write-once-use-everywhere-with-react-native-d6e575efe58e#.nfl50gwfg

License: GNU General Public License v3.0

JavaScript 63.52% Python 7.73% Java 6.64% HTML 1.41% Objective-C 20.69%

react-native-everywhere's Introduction

ReactNativeEverywhere ๐ŸŒ ๐Ÿ“ฑ ๐Ÿ’ป

woue.jpg

This project is an attempt to:
  • Target multiple platforms(Android, iOS, web, windows and macOS) with react native' APIs.
  • Follow best practices while doing the above.
  • Cut out the time and effort it takes to setup the project(based on create-react-app).
  • Achieve 'Write once use everywhere' with react-native(though react strictly says 'Learn once use anywhere').

How it works:

This starter kit has different branches based on what general requirements are(more branches coming soon). Just clone the project, switch to the desired branch, remove the .git folder and you are all set to code your app without thinking of any requirements or pre/post-tasks that need to be taken care of.

Selecting the right branch:

  • master : As the name says, it is and it'll always be the combination of all other branches, targeting all the possible platforms (does'nt support windows as of now).
  • common-navigation : Uses react-router-native to bring parity in API with react-router and make navigation logic common. Supports Universal-Windows-Platforms too. Uses power of Redux.
  • web : If you want a simple app(authenticating your users, displaying some data from remote sources and some process which is not very complex) and want it on android, iOS and web. This branch is what you need.
  • web-redux :If you want to utilize the power of redux(i.e. you want to have complete control over your app's state and don't want your app to be complex), this is what you are looking for.
    P.S. : As of now master and web-redux are at exact same stage.

Wiring Up:

git clone https://github.com/amoghbanta/reactNativeEverywhere.git yourProjectName
cd yourProjectName
git checkout theBranchYouNeed
rm -rf .git
npm i

Run the project:

Pre-requisites:

Node.js & npm on your system(follow this)
react-native CLI (npm install -g react-native-cli)

Android

react-native run-android

iOS

react-native run-ios

Web

npm run web

Windows

react-native windows react-native run-windows

Build for production:

Android/iOS

This will help

Web

npm run build (this will build your production ready bundle)


Some very useful cross platform compatible libraries:


Progress:


Running on Web, Android, iOS and Windows(Universal):


Contributing:

This starter kit is still in very early stage. All your suggestions and PRs and welcome.

react-native-everywhere's People

Contributors

amoghbanta avatar christopherhein avatar prayagverma avatar

Watchers

 avatar  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.