React Native
Props
v3.0.0 Breaking Change: The VisionSdkView component has been removed. Use VisionCamera instead. See the Release Notes for migration details.
VisionCamera Component Props
The VisionCamera component is the primary camera component for barcode scanning and OCR. It provides a streamlined API without requiring API keys or cloud configuration for basic scanning functionality.
Detection Config Object
VisionCameraRefProps — Imperative Methods Reference
Camera Auto-Start: The camera starts automatically when mounted - you don't need to call start() manually in most cases.
Property Control: Flash, zoom, and camera facing are controlled via props (enableFlash, zoomLevel, cameraFacing), not ref methods. Update the prop values to change these settings dynamically.
VisionCore Methods
For camera-independent OCR prediction and logging operations, use the VisionCore module instead of the component ref methods:
- Model Management: Use
VisionCore.downloadModel(),VisionCore.loadOCRModel(), etc. — See Documentation - Headless OCR Prediction: Use
VisionCore.predictWithModule(),VisionCore.predictShippingLabelCloud(), etc. — See Documentation - Data Logging: Use
VisionCore.logItemLabelDataToPx(),VisionCore.logShippingLabelDataToPx()— See Documentation