From 9bca1305f479160636eafdf2222f6b086227fa18 Mon Sep 17 00:00:00 2001 From: Juntae Kim Date: Thu, 25 Oct 2018 18:57:32 +0900 Subject: [PATCH] Update README.md (#19) Add `onErrorImg` prop to documentation --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 3a2cd62..5ee2af1 100644 --- a/README.md +++ b/README.md @@ -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. |