9.0.0
Note that you should use 9.0.2 (9.0.0 + 9.0.1 are deprecated due to some issues)
The library is now written in Typescript and comes with two breaking changes:
- You should remove
@types/react-image-crop
as the library is now self-documenting. - If you were importing the
.scss
file, the path is nowsrc/ReactCrop.scss
instead oflib/ReactCrop.scss
.
There are also two new props:
scale
: For zooming the image in and out. Defaults to 1. Combine with react-zoom-pan-pinch if you want pinch and scroll zooming.rotate
: For rotating the image between -180 to 180. Defaults to 0.