How to link modules?

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 ?

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.

1 Like