dwicao / react-universal-rendering

Single codebase for Web, Android, and iOS using React

Home Page:https://youtu.be/lRAfQ5UhapU

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

react-universal-rendering

Single codebase for Web, Android, and iOS using React

video (old version) https://youtu.be/lRAfQ5UhapU

Example project

Primitive Component:

  • Br
  • Button
  • FlatList
  • Image
  • Platform
  • Text
  • TextInput
  • View

copy to your machine

$ git clone https://github.com/dwicao/react-universal-rendering.git

don't forget to run $ npm install

run locally

$ npm run web-dev

go to http://localhost:3001

prod bundle (web)

$ npm run web-bundle

dir: react-universal-rendering/web/public

install react native CLI

$ npm install -g react-native-cli

start react native packager

$ react-native start

reset react native packager

$ react-native start --reset-cache

run android (debug)

$ react-native run-android

run ios (debug)

$ react-native run-ios

License

MIT

About

Single codebase for Web, Android, and iOS using React

https://youtu.be/lRAfQ5UhapU


Languages

Language:JavaScript 73.9%Language:Objective-C 14.8%Language:Python 5.8%Language:Java 4.5%Language:HTML 1.0%