GitXplorerGitXplorer
b

react-native-web-monorepo

public
865 stars
175 forks
6 issues

Commits

List of commits on branch master.
Verified
ae4ce9e59ca6fc7adc8f83a3871a78a6327df130

Merge pull request #67 from barelyhuman/master

bbrunolemos committed 4 years ago
Verified
00c03e30a4710b1caeabca86379afd0728269632

refactor: change xcode script

bbarelyhuman committed 4 years ago
Verified
df95e381aef53e0d976522ea4d7f38b04f749405

Update README.md

bbrunolemos committed 4 years ago
Verified
66212b5e36fd0b80e4d813eea94a4fdf70d0c15c

Update README.md

bbrunolemos committed 4 years ago
Verified
f844649e77bb995f198c917764f72e64b24df4fb

Add Next.js as an alternative to CRA

bbrunolemos committed 4 years ago
Verified
73331b817c6668cc9cd78bcfa3a018932db21ef8

Fix issue when running "yarn ios" or "yarn android" before "yarn workspace mobile start"

bbrunolemos committed 4 years ago

README

The README file for this repository.

React Native [Web] + Monorepo

100% code sharing between Web, iOS and Android

This is the source code from this tutorial.

Tech Stack: TypeScript v4, React Native v0.63, Next.js v10 & Create React App v4. Prettier and ESLint are also configured as pre-commit hooks.

article-cover

How to run

  • $ git clone git@github.com:brunolemos/react-native-web-monorepo.git
  • $ cd react-native-web-monorepo
  • $ yarn
  • Web
    • [CRA] $ yarn workspace web-cra start
    • [Next.js] $ yarn workspace web-nextjs dev
  • Mobile
    • [iOS]
      • $ cd packages/mobile/ios && pod update && pod install && cd -
      • [CLI]
        • $ yarn ios
      • [Xcode]
        • $ yarn workspace mobile start
        • yarn xcode
        • Press the Run button
    • [Android]
      • [CLI]
        • $ yarn android
      • [Android Studio]
        • $ yarn workspace mobile start
        • yarn studio
        • Press the Run button

Who is using this on production

Check out DevHub, which is the project that inspired this repository.

Author

Follow me on Twitter: @brunolemos