react-native-create-library icon indicating copy to clipboard operation
react-native-create-library copied to clipboard

How to add native dependencies?

Open apertureless opened this issue 5 years ago • 1 comments

Hi I want to add some native ios package as a dependency. It should go into the Embedded Binaries section.

However if I open the lib created with react-native-create-library I can't see the General section where Embedded Binaries is in.

If I create a normal react native app react-native init and open the xcode projcet I see the general section.

apertureless avatar Jul 30 '18 16:07 apertureless

the library would be embedded into the app and not the other way around.

You can dismiss the xcworkspace that comes with react-native-create-library.

For your app just put my-library under dependencies in its package.json then run react-native link after that you should be able to run your code.

Otherwise you can refer to the guide here https://facebook.github.io/react-native/docs/native-modules-ios

jugutier avatar Oct 16 '18 19:10 jugutier