This is the source code from this tutorial.
Tech Stack: React Native 0.63, Next.js v10 & Create React App v4
$ git clone [email protected]:brunolemos/react-native-web-monorepo.git
$ cd react-native-web-monorepo
$ yarn
$ cd packages/mobile/ios
$ pod install
$ cd -
- Web
- [CRA]
$ yarn workspace web-cra start
- [Next.js]
$ yarn workspace web-nextjs dev
- [CRA]
- Mobile
$ yarn workspace mobile start
- [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
Check out DevHub, which is the project that inspired this repository.
Follow me on Twitter: @brunolemos