v2.0.0: Vision Camera v5 Compatibility #131
jamenamcinteer
announced in
Announcements
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
react-native-vision-camera-ocr-plusv2 is now released 🎉This is a major update that adds support for VisionCamera v5 and rewrites the native layer around Nitro Modules.
react-native-vision-camera-ocr-plusprovides on-device OCR and text translation for React Native using VisionCamera and Google ML Kit. It supports live camera text recognition, live translation, photo OCR, scan-region cropping, configurable frame skipping, and translation model management.What’s new in v2:
• VisionCamera v5 support
• Nitro Modules / HybridObjects replacing the old VisionCamera frame-processor/native-module integration
• New Nitro specs, generated bindings, and iOS/Android HybridObject implementations
• Updated JS/TypeScript public API and
<Camera />wrapper• Public type exports for advanced integrations
• Refreshed package metadata, tests, migration docs, and example app configuration for the VisionCamera v5 / Nitro stack
This is a breaking release because the native architecture has changed significantly. The
<Camera />wrapper should still feel familiar for most use cases, but custom frame processor integrations will need updates.The biggest migration change is translation. In v1,
translate(frame)handled OCR and translation synchronously inside the worklet. In v2, OCR still runs synchronously in the worklet withscanText(frame), but translation now runs asynchronously on the JS thread withtranslate(text).v2 also raises the minimum requirements:
• React Native 0.81+
• VisionCamera 5+
•
react-native-worklets0.8.0+• iOS 15.1+
• Android minSdkVersion 26
• Android targetSdkVersion 36
• Expo 54, if using Expo
•
react-native-workletsinstead ofreact-native-worklets-coreIf you’re upgrading from v1, please read the migration guide before installing. It covers the new dependencies, VisionCamera v5 changes, hook return type changes, custom frame processor updates, and the new translation flow.
I’d love feedback from anyone upgrading a real app to v2. If you run into bugs, edge cases, confusing docs, build issues, or migration problems, please open an issue so I can track it and improve the release.
Thanks to everyone using the library, opening issues, and helping keep OCR support moving forward for modern React Native apps.
Release: https://github.com/jamenamcinteer/react-native-vision-camera-ocr-plus/releases
npm: https://www.npmjs.com/package/react-native-vision-camera-ocr-plus
Migration guide: https://github.com/jamenamcinteer/react-native-vision-camera-ocr-plus/blob/main/MIGRATION.md
What's Changed
Full Changelog: v1.2.9...v2.0.0
This discussion was created from the release v2.0.0.
Beta Was this translation helpful? Give feedback.
All reactions