DEV Community

Cover image for react-native-vision-camera-ocr-plus v2 Released with Vision Camera v5 + Nitro Modules Compatibility
Jamena McInteer
Jamena McInteer

Posted on

react-native-vision-camera-ocr-plus v2 Released with Vision Camera v5 + Nitro Modules Compatibility

react-native-vision-camera-ocr-plus v2 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-plus provides 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.

Animated demo of a vision camera app recognizing text and translating it

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 with scanText(frame), but translation now runs asynchronously on the JS thread with translate(text).

v2 also raises the minimum requirements:

β€’ React Native 0.81+
β€’ VisionCamera 5+
β€’ react-native-worklets 0.8.0+
β€’ iOS 15.1+
β€’ Android minSdkVersion 26
β€’ Android targetSdkVersion 36
β€’ Expo 54, if using Expo
β€’ react-native-worklets instead of react-native-worklets-core

If 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

Top comments (0)