Skip to content

Commit c65c7e5

Browse files
author
Michaël Villeneuve
committed
Update readme
1 parent e2e1f4f commit c65c7e5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ class YourComponent extends Component {
4040
<View>
4141
<DocumentScanner
4242
onPictureTaken={data => this.setState({
43-
image: data.image,
43+
image: data.croppedImage,
4444
initialImage: data.initialImage,
4545
rectangleCoordinates: data.rectangleCoordinates,
4646
})}
@@ -110,7 +110,7 @@ Enum (0, 1 or 2) corresponding to the type of rectangle found
110110

111111
| Prop | Params | Type | Description |
112112
| :----------- |:-------:| :--------:| :----------|
113-
| onPictureTaken | `data` | `object` | Returns the captured image in an object `{ image: 'BASE64 string', initialImage: 'BASE64 string', rectangleCoordinates: 'object of coordinates' }` |
113+
| onPictureTaken | `data` | `object` | Returns the captured image in an object `{ croppedImage: 'BASE64 string', initialImage: 'BASE64 string', rectangleCoordinates: 'object of coordinates' }` |
114114

115115

116116

0 commit comments

Comments
 (0)