Shhzdmrz / ReactNativeMonorepoApps

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

React Native Monorepo

100% code sharing between apps for iOS and Android

This is the source code Follwoing this tutorial.

article-cover

How to run

Requirements: React Native (last tested on react-native@0.61.5)

  • $ git clone {this repo}
  • $ cd TaxiApps
  • $ yarn
  • $ cd packages/fmstaxiclientapp/ios and cd packages/fmstaxidriverapp/ios
  • $ pod install
  • $ cd -
  • $ yarn workspace fmstaxiclientapp start
  • $ yarn workspace fmstaxidriverapp start
  • Run the project
    • [iOS] Via Xcode
      • yarn xcode (open the project on Xcode)
      • Press the Run button
    • [Android] Via Android Studio
      • yarn studio (open the project on Android Studio)
      • Press the Run button
    • Via CLI
      • You may need to launch your device emulator before the next command
      • $ yarn android or $ yarn ios

Note:

  • Autolinking not working with monorepo need to add it manully.
  • Sometimes yarn do not work properly and adds extra node_modules to the library(fmscoreop).

About


Languages

Language:Objective-C 29.5%Language:Ruby 20.9%Language:Java 18.7%Language:JavaScript 17.5%Language:Starlark 13.5%