Skip to content

2j2e/react-conf-armenia-2019

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

React Native & React Web monorepo example

You can find the slides of the talk here in the repo or at SlideShare

How to run

Web (React)

cd packages/web
npm start

react web screenshot

Mobile (React Native)

cd packages/mobile
react-native run-ios

react native mobile screenshot

How to make same from scratch

Init repo & Lerna

npm install -g lerna
mkdir monorepo
cd monorepo

# Init Lerna part
lerna init
cd package

Create React web app

npx create-react-app web
# Change the web/package.json name to '@prefix/web'

Create React Native app

react-native init mobile
# Change the mobile/package.json name to '@prefix/mobile'

Create shared code

mkdir shared

# Add 'shared' as a dependency for 'web' and 'mobile'
lerna add @prefix/shared

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published