Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to add native dependencies? #71

Open
apertureless opened this issue Jul 30, 2018 · 1 comment
Open

How to add native dependencies? #71

apertureless opened this issue Jul 30, 2018 · 1 comment

Comments

@apertureless
Copy link

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.

@jugutier
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants