New Architecture ready
Version-aware Android packages and generated iOS TurboModule registration.
Native C core · WebAssembly worker
Create and apply compact binary patches across iOS, Android, and React Native Web—with one compatible patch format and typed API.
npm i react-native-bs-diff-patch
import { diffBytes, patchBytes } from 'react-native-bs-diff-patch';
const delta = await diffBytes(oldBytes, newBytes);
const restored = await patchBytes(oldBytes, delta);
Try the real implementation
Under the hood
Paths on native. Binary inputs on Web.
Serial native queues or an isolated module Worker.
The same bsdiff and bzip2 sources everywhere.
A compatible `ENDSLEY/BSDIFF43` patch.
Designed for integration
Expensive work stays off React Native's module queue and the browser main thread. Unsupported API families reject clearly instead of guessing at filesystem behavior.
Read the architecture →Version-aware Android packages and generated iOS TurboModule registration.
WASM work runs outside the page thread and terminates after each operation.
Create a patch on one supported runtime and apply it on another.
Native matrices, device assertions, browser round trips, Metro and package gates.
Documentation
Follow platform-specific setup, inspect every API and error code, and understand memory, bundler, and compatibility constraints before you ship.