Skip to content

Doesn't work with react-native #9

@bkniffler

Description

@bkniffler

Hey, this library works nice in node/browser. But unfortunately not with react-native, since there is no global Buffer element. Replacing that part with require('buffer').Buffer works.

So maybe this could be changed to something along: let buffer = typeof Buffer !== 'undefined' ? Buffer : require('buffer').Buffer;?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions