A React Native library for directly accessing an ArrayBuffer of a Blob instance.
Note: This is a workaround. A long-term solution would be to implement this directly on the Blob instance in React Native Core.
npm install react-native-blob-jsi-helper
import { getArrayBufferForBlob } from "react-native-blob-jsi-helper";
// ...
const blob = ...
const arrayBuffer = getArrayBufferForBlob(blob);
import { getBlobForArrayBuffer } from "react-native-blob-jsi-helper";
// ...
const arrayBuffer = ...
const blob = getBlobForArrayBuffer(arrayBuffer);
If you know me, you know that my libraries are as fast as they can get. react-native-blob-jsi-helper is no different - it is written in C++ JSI and is therefore really fast.
See the contributing guide to learn how to contribute to the repository and the development workflow.
MIT