JSPM

@react-native-ml-kit/text-recognition

1.0.0-alpha
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 24209
  • Score
    100M100P100Q162896F
  • License MIT

React Native On-Device Text Recognition w/ Google ML Kit

Package Exports

  • @react-native-ml-kit/text-recognition

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@react-native-ml-kit/text-recognition) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

@react-native-ml-kit/text-recognition

React Native On-Device Text Recognition w/ Google ML Kit

⚠ WARNING: Don't use this in production.
This package is still in alpha release, so it's not recommended to use it in production until it's fully stable, however using it for testing purposes is helpful.

Getting started

npm install @react-native-ml-kit/text-recognition --save

Linking

React Native > 0.59

CLI autolink feature links the module while building the app.

React Native <= 0.59

react-native link @react-native-ml-kit/text-recognition

Installing Pods

On iOS, use CocoaPods to add the native RNMLKitTextRecognition to your project:

npx pod-install

Usage

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

const result = await TextRecognition.recognize(TextURL);