Skip to content

How do you use react-native libraries? #849

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

Closed
jerrygreen opened this issue Mar 3, 2018 · 1 comment
Closed

How do you use react-native libraries? #849

jerrygreen opened this issue Mar 3, 2018 · 1 comment

Comments

@jerrygreen
Copy link

  1. Is this impossible?

Every library should have something like dist folder with complied js (from es6 / other babel features). But react-native libs don't have such a folder, they don't need that to work.

Also, there may be some code behind the bridge (c/swift/java code running on ios/android), and there's no such code analogue for web platform, right? How do you use it then?

  1. Where/how can I find react-native libs that support react-native-web?

  2. How can I upgrade basic react-native lib to use it with react-native-web?

@necolas
Copy link
Owner

necolas commented Mar 3, 2018

You can use js-only react native packages and pass them through the compiler as documented in the getting started guide. Obviously packages with native dependencies won't work

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