react-native-ntl-document-camera
v1.0.2
Published
using VisionKit feature (VNDocumentCameraViewController)
Downloads
5
Readme
react-native-ntl-documentscanner
Getting started
$ npm install react-native-ntl-document-camera --save
Mostly automatic installation
$ react-native link react-native-ntl-document-camera
Manual installation
iOS
- In XCode, in the project navigator, right click
Libraries
➜Add Files to [your project's name]
- Go to
node_modules
➜react-native-ntl-document-camera
and addRCTNtlDocumentCamera.xcodeproj
- In XCode, in the project navigator, select your project. Add
libRCTNtlDocumentCamera.a
to your project'sBuild Phases
➜Link Binary With Libraries
- Run your project (
Cmd+R
)<
Usage
import NtlDocumentCamera from 'react-native-ntl-document-camera';
// TODO: What to do with the module?
this.subscription;
const DocumentCameraEmitter = new NativeEventEmitter(NtlDocumentCamera);
subscription = DocumentCameraEmitter.addListener(
'EventReminder',
(reminder) => console.log(reminder.images)
);
NtlDocumentCamera.openCamera();
componentWillUnmount() {
subscription.remove();
}
Image