Skip to content

shubhadip/mono-repo-react-native

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mono-repo-react-native

ReactNative and ReactNativeWeb MonoRepo

code sharing between Web, iOS and Android


Technology Used:
React
React Native
React Native Web
Lerna


To Run the Project:
Please follow below mentioned step to run this project:

  • Clone the repo
https://github.com/shubhadip/mono-repo-react-native
  • run yarn in root folder

To Run Web Version

  • Run yarn webdev in root folder.

To Run Android Version

  • Run yarn webdev in root folder.

To Update Common LibraryCode

  • Run yarn libdev in root folder.

To update library code and develop your web version

  • Run yarn libdev and yarn webdev this is make sure your changes are reflected in realtime when you change code in library

To update library code and develop your android version

  • Run yarn libdev and yarn androiddev this is make sure your changes are reflected in realtime when you change code in library

to develop android code we have to make a symlink from library to android folder.

npm install -g wml. wml add ./packages/common ./packages/nativeapp/node_modules/monoreactrepo wml start.

now you will updated code everytime you change something in library code.

To Import Library

  • import { YourComponent } from 'monoreactrepo'