Linking of native libraries of an Expo app in a monorepo

In a monorepo, uses of a native library can be separated from the codebase of the Expo application: all the code of the application can be extracted in a package consumed by different applications, like Expo and Next.js, as recommended by Solito.

If the native library is not installed in the package.json of the Expo application itself, it won’t be linked and the application won’t work when in production—it may work during development.

So, the native library can be installed in the package where it’s used, but it must be installed in the Expo application.

Join my mailing list

Get monthly insights, personal stories, and in-depth information about what I find helpful in web development as a freelancer.

Email advice once a month + Free XState report + Free course on XState

Want to see what it looks like? View the previous issues.

I value your privacy and will never share your email address.