kanzitelli / rnn-starter

🤹 React Native Starter - Powered by cli-rn, React Native Navigation, Expo Modules, RNN Screens, RN UI lib, MMKV, Mobx, Reanimated 2, Dark Mode, Splash Screen, Localization, Notifications, Permissions, and much more.
https://starters.dev
MIT License
551 stars 72 forks source link

How to work with monorepo #55

Open felixmosh opened 3 years ago

felixmosh commented 3 years ago

Hi,

Thank you for this awesome starter kit!

I want to use this starter kit as one of the packages inside a monorepo. Tried to run it and it fails in multiple places.

One of them I've solved by preventing hoist of react-native packages.

Do you have a config for mono-repo?

kanzitelli commented 3 years ago

Hi @felixmosh! Thank you 🙏

I have never had the experience of setting up a monorepo with this starter, unfortunately. Maybe if you share the errors, I might help you somehow. Plus, it would be cool to have this config for the future!

felixmosh commented 3 years ago

Since monoreo hoisting all the packages on the root node_module all the paths to react-native stuff are wrong.

I've tried not hoist them, then mobx(which was installed at the root level) has import to react-native and it fails.

kanzitelli commented 3 years ago

Hey @felixmosh!

Sorry, I've been super busy these days but I still don't have a solution for the issue you have raised :( I will keep this issue open just in case if the solution will be found.

felixmosh commented 3 years ago

Actually I've managed to run the ios version inside monorepo, unfortunately I've busy as well, so I put the project on hold for now.