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

React native - Can't find variable: Buffer #80

Closed
Federkun opened this issue Dec 17, 2020 · 2 comments
Closed

React native - Can't find variable: Buffer #80

Federkun opened this issue Dec 17, 2020 · 2 comments
Labels
help wanted Extra attention is needed

Comments

@Federkun
Copy link
Contributor

Hi all! I just have enough time to log the issue: this is something introduced by #75 ; Buffer is one of those global vars that don't exists in RN. This is not a critical issue, as even on the user's side a simple global.Buffer = bufferPolyfill will do to fix the issue. Another alternative is to relay on https://www.npmjs.com/package/buffer directly from this package

@kettanaito
Copy link
Member

Hey, @Federkun. Nice to hear again from you!

I wonder if there's an alternative approach to create a buffer from the response body, apart from using Buffer.from.

@kettanaito kettanaito added the help wanted Extra attention is needed label Dec 20, 2020
@kettanaito
Copy link
Member

There's been a chunk of improvements implemented by @wwdrew that concern React Native operability:

I believe that the React Native usage is functional now.

There's an effort to add the React Native example in mswjs/examples#60.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants