Skip to content

Commit

Permalink
Update README.md (#19)
Browse files Browse the repository at this point in the history
Add `onErrorImg` prop to documentation
  • Loading branch information
bexoss authored and ValentinH committed Oct 25, 2018
1 parent f7caf8c commit 9bca130
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@ class App extends React.Component {
| `onCropChange` | Function || Called everytime the crop is changed. Use it to update your `crop` state.|
| `onZoomChange` | Function | | Called everytime the zoom is changed. Use it to update your `zoom` state. |
| [`onCropComplete`](#onCropCompleteProp) | Function | | Called when the user stops moving the image or stops zooming. It will be passed the corresponding cropped area on the image in percentages and pixels |
| `onImgError` | Function | | Called when error occurs while loading an external image |
| `style` | `{ containerStyle: object, imageStyle: object, cropAreaStyle: object }` | | Custom styles to be used with the Cropper. Styles passed via the style prop are merged with the defaults. |
| `classes` | `{ containerClassName: string, imageClassName: string, cropAreaClassName: string }` | | Custom class names to be used with the Cropper. Classes passed via the classes prop are merged with the defaults. |

Expand Down

0 comments on commit 9bca130

Please sign in to comment.