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

Doesn't work on React Native #50

Closed
smakosh opened this issue Sep 29, 2019 · 2 comments
Closed

Doesn't work on React Native #50

smakosh opened this issue Sep 29, 2019 · 2 comments

Comments

@smakosh
Copy link

smakosh commented Sep 29, 2019

Doesn't seem to work with React Native 0.60.5

@sindresorhus
Copy link
Owner

This module mainly targets Node.js, not React Native. It's up to you to transpile it with Babel if you want to use it there.

If you use Webpack, check out babel-engine-plugin, which transpiles only the dependencies that needs to be transpiled.

If you use Create React App, upgrade to Create React App v2. It supports automatic transpilation of dependencies, which will make this package just work.

@infostreams
Copy link

You can use Anchorme which does support React Native out of the box.

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

3 participants