Minimal React Native macOS example for @preeternal/react-native-file-hash.
This example is intentionally separate from example/ because React Native
macOS currently tracks an older React Native line than the mobile example. It is
still part of the root Yarn workspace, matching the mobile example setup.
react-native:0.81.6react-native-macos:0.81.8- File hash backend: Zig only
yarn install
cd examples/macos
yarn pods
yarn startIn another shell:
cd examples/macos
yarn macosThe app covers:
- runtime diagnostics;
- all Zig-supported algorithms exposed by the mobile example (
MD5,SHA-*,XXH3-64,BLAKE3,HMAC-*); stringHashwithutf8andbase64input;- HMAC/BLAKE3 key options and XXH3 seed options;
fileHashfor a file selected throughNSOpenPanel;fileHashfor a manually entered local path orfile://URI;- file hashing benchmark with the same native
BenchmarkFilehelper contract as the mobile example; - cancellation through
AbortController.
XXH3-128 remains native-engine-only and is covered by the mobile example.
content:// is Android-only and remains covered by the mobile example.