viewstools / yarn-workspaces-cra-crna

How to use yarn workspaces with Create React App and Create React Native App (Expo) to share common code across
151 stars 23 forks source link

can this work with pure react native project? #29

Open sibelius opened 5 years ago

sibelius commented 5 years ago

does this only work with cra and crna or a pure react native project should work as well?

can we add docs for this config?

SimenB commented 5 years ago

by copying from #26 I got it working for Expo, so I suppose normal RN works as well (didn't need crna-make-symlinks-for-yarn-workspaces, that just worked)

SamMatthewsIsACommonName commented 5 years ago

Yes every example seems to be to do with expo, however mature projects like ours have nothing to do with expo. A working config would be greatly appreciated! I tried to run and got Error: EEXIST: file already exists for expo... and I havent defined expo as a dependency anywhere???

sibelius commented 5 years ago

expo has this package https://github.com/expo/expo/tree/master/packages/expo-yarn-workspaces

SamMatthewsIsACommonName commented 5 years ago

@sibelius thanks but is that not also for an expo project? Edit: to be clear, our project was created with react native cli a long time ago, and isn't related to expo in any way (uses a lot of native modules etc)