Skip to content

A hybrid react web and react native boilerplate code with redux state being shared by both

Notifications You must be signed in to change notification settings

KarthikMAM/react-hybrid

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

react-hybrid

A hybrid react web and react native boilerplate code with redux state being shared by both

STATE

cd state/
yarn && gulp build:watch

WEB

cd web/
yarn global add create-react-app
yarn install && yarn start

SERVER

cd web/
yarn global add create-react-app
yarn install && yarn server

NATIVE

cd mobile/
yarn global add react-native-cli

# in bashrc file add the following lines
export ANDROID_HOME=${HOME}/Android/Sdk
export PATH=${PATH}:${ANDROID_HOME}/tools
export PATH=${PATH}:${ANDROID_HOME}/platform-tools

yarn && react-native run-android && yarn start