Installation
Install package
Section titled “Install package”bun add @korsolutions/visionRequired peer dependencies
Section titled “Required peer dependencies”Install the SDK peer dependencies used by the scanner and OCR pipeline:
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-pluginNative setup notes
Section titled “Native setup notes”- Configure
react-native-vision-camerafor platform camera permissions. - Configure
react-native-reanimatedBabel/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.
Validate installation
Section titled “Validate installation”Use this import test:
import { DocumentScannerFlow, useOCR, detectDocument } from '@korsolutions/vision';If TypeScript resolves these symbols, your install is ready.