0.0.2 • Published 3 years ago

react-native-ios-documentscanner v0.0.2

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

React-Native-iOS-DocumentScanner

iOS document scanner for React Native (using VisionKit).

Installation

  1. Install React Native iOS DocumentScanner.
    npm install react-native-ios-documentscanner --save
  2. Run Pod install.

    cd ios
    pod install

Usage

import DocumentScanner from 'react-native-ios-documentscanner';

DocumentScanner().startScan(
      {
        savePath: { originalImagePath: 'temp/original', imagePath: 'temp/cropped' },
        callback: (image) => {
          console.log(image.originalImageList, image.imageList)
        }
      })