Expo Text Extractor is a library that enables text recognition (OCR) using Google ML Kit on Android and Apple Vision on iOS.
Android Device | Android Emulator | iOS Device | iOS Simulator | Web |
---|---|---|---|---|
✅ | ✅ | ✅ | ✅ | ❌ |
To get started, install the library using Expo CLI:
npx expo install expo-text-extractor
Ensure your project is running Expo SDK 52+.
Check the example app for more details.
A boolean value indicating whether the current device supports text extraction.
const isSupported: boolean;
Extracts text from an image and returns the recognized text as an array.
async function extractTextFromImage(uri: string): Promise<string[]>;