Skip to content

Commit b4cb8a8

Browse files
committed
docs: ✏️ update readme
1 parent 0689a00 commit b4cb8a8

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ import DocumentScanner from "@woonivers/react-native-document-scanner"
7878
function 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-_

0 commit comments

Comments
 (0)