Skip to content

toGlobalId/fromGlobalId not working inside React Native #152

Closed
@vincentisambart

Description

@vincentisambart

I tried using this library's toGlobalId and fromGlobalId from a React Native application, however I got an error that Buffer is not defined (it's used in src/utils/base64.js). It seems that Buffer is only available from NodeJS...

If you consider that this library should also be available from React Native (or a browser), at least some changes need to be made to base64.js.

In the time being I'll probably just use join/split.

By the way, the reason I was trying to use this library from React Native is to do something similar to http://graphql.org/blog/rest-api-graphql-wrapper/.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions