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

oauthSignature is undefined in react-native #40

Open
imsateesh opened this issue Dec 26, 2017 · 3 comments
Open

oauthSignature is undefined in react-native #40

imsateesh opened this issue Dec 26, 2017 · 3 comments

Comments

@imsateesh
Copy link

This may seem very basic but I'm stuck over here. I am getting the error oauthSignaure is undefined.
I am trying to import it like:
import oauthSignature from 'oauth-signature';

Also I have tried to use require with require() as well, but it doesn't work.
Please let me know how can I use it with react-native?

@bettiolo
Copy link
Owner

bettiolo commented Jan 3, 2018

I never used it with react-native I will have to give it a go. Maybe the way it is exported makes it not compatible.

@omniscient
Copy link

We had the same problem with Aurelia. We had to prepend the JS file in the build system... I do not know react at all, but there might be a way to just do a similar thing

@shotozuro
Copy link

Hi.. I use this library too and it works well in my react-native project. Maybe you should restart the packager first, and import it like you did before:

import oauthSignature from 'oauth-signature';

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

4 participants