react-universal-rendering
react-universal-rendering copied to clipboard
Single codebase for Web, Android, and iOS using React

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