fixerteam / React-Native-monorepo

React and React-Native monorepo

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ReactNative/React with Lerna example

lerna

This repository demonstrate how to make monorepo for sharing code between React-Native project and React project.

Libs version

  • react-native: 0.57.8,
  • react: 16.6.3,
  • lerna: 3.6.0

Installation

$ npm install -g lerna

then inside project root execute

$ lerna bootstrap

after bootstraping and hoisting dependencies just run project.

Web

$ cd packages/web && npm run start

Mobile

$ cd packages/mobile && react-native run-android

or

$ cd packages/mobile && react-native run-ios

About

React and React-Native monorepo


Languages

Language:JavaScript 57.2%Language:Objective-C 17.5%Language:Python 7.7%Language:HTML 7.1%Language:Java 6.7%Language:CSS 3.8%