Skip to content

Installation

Terminal window
bun add @korsolutions/vision

Install the SDK peer dependencies used by the scanner and OCR pipeline:

Terminal window
bun add expo-file-system @shopify/react-native-skia react-native-executorch react-native-fast-opencv react-native-reanimated react-native-safe-area-context react-native-svg react-native-vision-camera vision-camera-resize-plugin
  • Configure react-native-vision-camera for platform camera permissions.
  • Configure react-native-reanimated Babel/plugin setup.
  • Install and link native dependencies for OpenCV and ExecuTorch.
  • If your app uses Expo, ensure native modules are available in your build workflow.

Use this import test:

import { DocumentScannerFlow, useOCR, detectDocument } from '@korsolutions/vision';

If TypeScript resolves these symbols, your install is ready.