Skip to content
This repository has been archived by the owner on Jun 16, 2023. It is now read-only.

Commit

Permalink
docs(rncamera): specifying onTextRecognized callback prototype
Browse files Browse the repository at this point in the history
  • Loading branch information
alculquicondor committed Mar 22, 2018
1 parent 68639b8 commit 4861121
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion src/RNCamera.js
Expand Up @@ -31,6 +31,22 @@ type TrackedFaceFeature = FaceFeature & {
faceID?: number,
};

type TrackedTextFeature = {
type: string,
bounds: {
size: {
width: number,
height: number,
},
origin: {
x: number,
y: number,
},
},
value: string,
components: Array<TrackedTextFeature>,
};

type RecordingOptions = {
maxDuration?: number,
maxFileSize?: number,
Expand Down Expand Up @@ -58,7 +74,7 @@ type PropsType = ViewPropTypes & {
autoFocus?: string | boolean | number,
faceDetectionClassifications?: number,
onFacesDetected?: ({ faces: Array<TrackedFaceFeature> }) => void,
onTextRecognized?: Function,
onTextRecognized?: ({ textBlocks: Array<TrackedTextFeature> }) => void,
captureAudio?: boolean,
useCamera2Api?: boolean,
};
Expand Down

0 comments on commit 4861121

Please sign in to comment.