Can i import any js library into expo project?

I’m quite sure the answer is no, hence what libraries are ok are what are not.

Here a directory to check compatibility for some libraries. https://www.native.directory/

1 Like

Hey @kaijiepro,

A good rule of thumb is: If the library requires you to make any manual native code changes or run react-native link, you won’t be able to use the library in a standard Expo project. If you find yourself needing to integrate one of those libraries into your project, we offer the detach option which will create the android & ios directories needed to make those aforementioned changes. Detaching does come at a cost so make sure you understand what it all entails by reading the following documentation:

https://docs.expo.io/versions/latest/guides/detach.html
https://docs.expo.io/versions/latest/guides/expokit.html
https://docs.expo.io/versions/latest/guides/advanced-expokit-topics.html

Cheers,

Adam

1 Like

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.