How to link modules?


#1

Hi Everyone,

Im very new to Expo and so far its looking great! I love not using Xcode :slight_smile: .

I have one issue, Im using a react-native-spinkit npm module which throws this error
Warning: Native component for "RNSpinkit" does not exist

This module requires a link, usually i would call react-native link which would link the module. Of course this doesnt work since there are no xcode / android project files.

So my question is how can i link modules to expo ?


#2

Unfortunately, in order to use custom native modules you would need to detach and use ExpoKit since Expo projects are purely JS. Detaching creates the android/iOS directories and then you can run react-native link. Detaching does have its consequences so make sure you take a look at the docs.

https://docs.expo.io/versions/v16.0.0/guides/detach.html