react-native-create-library
react-native-create-library copied to clipboard
How to add native dependencies?
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.
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