Skip to content
Code sharing between iOS, Android & Web using monorepo
Branch: master
Clone or download
Latest commit 4129a89 Mar 19, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
packages Use the exact same version between monorepo dependencies Mar 18, 2019
.gitignore Monorepo Mar 5, 2019
README.md
package.json Monorepo Mar 5, 2019
yarn.lock Use the exact same version between monorepo dependencies Mar 18, 2019

README.md

React Native [Web] + Monorepo

100% code sharing between Web, iOS and Android

This is the source code from this tutorial.

article-cover

How to run

  • $ git clone git@github.com:brunolemos/react-native-web-monorepo.git
  • $ cd react-native-web-monorepo
  • $ yarn
  • $ yarn workspace mobile start
  • Run the project
    • Via Xcode / Android Studio
      • Open Xcode / Android Studio and press the Run button
    • Via CLI
      • Open a new terminal tab
      • $ cd packages/mobile
      • $ npm un -g react-native-cli
      • $ npm i -g @react-native-community/cli
      • $ react-native run-ios or react-native run-android

Author

Follow me on Twitter: @brunolemos

Who is using this on production

Check out DevHub. The main differences are that it shares TypeScript code instead of JavaScript and also supports Desktop in addition to Web, iOS and Android.

DevHub Desktop

DevHub Menubar

DevHub Mobile - Notifications DevHub Mobile - Notification Filters DevHub Mobile - Events DevHub Mobile - Event Filters


You can’t perform that action at this time.