React Native Monorepo
100% code sharing between apps for iOS and Android
This is the source code Follwoing this tutorial.
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
- [iOS] Via Xcode
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).