Skip to content

Latest commit

 

History

History
48 lines (33 loc) · 2.21 KB

File metadata and controls

48 lines (33 loc) · 2.21 KB

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