Skip to content

ArrayBuffer over RN Bridge #107

Closed
Closed
@EternalDeiwos

Description

@EternalDeiwos

Introduction

There has been discussion on the main repo (facebook/react-native#1424) about the use of ArrayBuffers over the React Native Bridge -- specifically around the use of websockets. This issue was resolved and we are now supposedly able to receive websocket message and fetch response bodies as ArrayBuffers (I haven't done this myself but I've seen a bunch of things suggesting that it works). Would it be possible to extend these specific cases to support ArrayBuffers as a first class data type for the RN Bridge?

The Core of It

Those of us who are attempting to use native features for communication and cryptographic operations (among many others) would benefit from being able to pass data through the bridge. In particular, this would ease access to device hardware such as the Android KeyStore / iOS Secure Enclave, NFC, etc.

Current Solutions

Currently I'm just base64 encoding my ArrayBuffers and passing them through the bridge as a string.

Discussion

  • How are you currently getting around this (if not the same as the above)?
  • Are there things you'd like to do that do not have a work-around?
  • What would be involved in supporting this?

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