File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -78,7 +78,7 @@ import DocumentScanner from "@woonivers/react-native-document-scanner"
7878function YourComponent(props) {
7979 return (
8080 <View>
81- <PDFScanner
81+ <DocumentScanner
8282 style={styles.scanner}
8383 onPictureTaken={handleOnPictureTaken}
8484 overlayColor="rgba(255,130,0, 0.7)"
@@ -117,19 +117,19 @@ Full example in [example folder](https://github.com/Woonivers/react-native-docum
117117- First create a mutable ref object:
118118
119119` ` ` javascript
120- const pdfScannerElement = useRef(null)
120+ const documentScannerElement = useRef(null)
121121` ` `
122122
123123- Pass a ref object to your component:
124124
125125` ` ` javascript
126- < DocumentScanner ref={pdfScannerElement } />
126+ < DocumentScanner ref={documentScannerElement } />
127127` ` `
128128
129129- Then call:
130130
131131` ` ` javascript
132- pdfScannerElement .current.capture ()
132+ documentScannerElement .current.capture ()
133133` ` `
134134
135135# # Each rectangle detection (iOS only) _-Non tested-_
You can’t perform that action at this time.
0 commit comments