Patreon / patreon-js

Use the Patreon API via OAuth.
MIT License
154 stars 30 forks source link

Can't use with React Native #8

Closed code0100fun closed 6 years ago

code0100fun commented 8 years ago

The dependency on verror and through it the node util module makes this library unusable in React Native.

https://github.com/facebook/react-native/issues/526

Removing the VError calls in OAuth.js or detecting if the environment is not node and swapping out the error module would solve the issue.

Just to justify my use case, I'm fetching the campaigns for a user from the device. OAuth will happen on the server of course.

21echoes commented 8 years ago

hey @code0100fun ! We'll take a look at this in the next week or few so we can do the environment detection properly. For now, feel free to fork and s/VError/Error

emosesPatreon commented 6 years ago

No longer using verror