Linking of native libraries of an Expo app in a monorepo

Published on


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 new articles directly in your inbox.

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