This repository demonstrate how to make monorepo for sharing code between React-Native project and React project.
- react-native: 0.57.8,
- react: 16.6.3,
- lerna: 3.6.0
$ npm install -g lerna
then inside project root execute
$ lerna bootstrap
after bootstraping and hoisting dependencies just run project.
$ cd packages/web && npm run start
$ cd packages/mobile && react-native run-android
or
$ cd packages/mobile && react-native run-ios