1.0.4 • Published 8 months ago

@johnsriders/react-native-text-recognition v1.0.4

Weekly downloads
-
License
MIT
Repository
github
Last release
8 months ago

TextRecognition

🧠 TextRecognition - ML-Powered Text Extraction for React Native Bring the power of Google's latest ML Kit Text Recognition directly into your React Native app with @jd/react-native-text-recognition. This library allows you to effortlessly detect and extract text from images — printed or handwritten — using cutting-edge machine learning models.

šŸ”„ Note: Due to integration with the newest version of ML Kit, this library requires iOS 16.1+ as the minimum deployment target .

Perfect for OCR features, document scanning, form auto-fill, and more!

āœ… Features

šŸ” Detects both printed and handwritten text

šŸš€ Powered by Google ML Kit (v8.0.0+) for high accuracy and performance

šŸ“± Supports iOS 16.1 and above for native capabilities

āš™ļø Easy installation via CocoaPods

šŸ‘Œ Works seamlessly with modern React Native projects

šŸ“² Installation

šŸŽ iOS Setup

This library uses Google ML Kit , so you'll need to update your Podfile accordingly:

Installation IOS

pod 'TextRecognition', :path => '../node_modules/@johnsriders/react-native-text-recognition/ios'

pod 'GoogleMLKit/TextRecognition', '~> 8.0.0'
pod 'SDWebImage', '~> 5.11.1'

cd ios && pod install

post_install do |installer|
  installer.pods_project.build_configurations.each do |config|
    config.build_settings["EXCLUDED_ARCHS[sdk=iphonesimulator*]"] = "arm64"
  end
end

šŸ’” Make sure your Xcode project is targeting iOS 16.1 or later , as ML Kit now requires it for full functionality

Installation Android

implementation 'com.google.android.gms:play-services-mlkit-text-recognition:19.0.1'

Usage

import TextRecognition from '@johnsriders/react-native-text-recognition';

TextRecognition.recognizeFromImage(imagePath)
  .then(text => console.log("Recognized text:", text))
  .catch(err => console.error("Recognition error:", err));

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

License

MIT

1.0.4

8 months ago

1.0.3

8 months ago

1.0.2

8 months ago

1.0.1

8 months ago

1.0.0

8 months ago