react-image-crop-tool
v1.1.4
Published
A react native image crop tool
Downloads
38
Readme
react-image-select-tool
A react component for cropping images.
##Usage
import CropPanel from "react-image-crop-tool";
<CropPanel
originalSrc={this.state.original || this.props.original}
onSelectRegion={this.cropRegion} //required
cancelCrop={this.endCrop} //required
aspectRatio={this.props.aspectRatio}
size={this.props.size} //required
onDeleteImage={this.onCancelCropImage || false}
labels={this.labels}
buttons={this.props.cropPanelButtons || this.props.buttons}/>)