diff --git a/src/ImageCrop.js b/src/ImageCrop.js index a6deeed..b5a7228 100644 --- a/src/ImageCrop.js +++ b/src/ImageCrop.js @@ -196,6 +196,7 @@ class ImageCrop extends Component { center={[this.state.centerX, this.state.centerY]} /> + {this.props.Overlay} ) } @@ -214,7 +215,8 @@ ImageCrop.defaultProps = { pixelRatio: PixelRatio.get(), type: 'jpg', format: 'base64', - filePath: '' + filePath: '', + Overlay: null, } ImageCrop.propTypes = { image: PropTypes.string.isRequired, @@ -227,6 +229,7 @@ ImageCrop.propTypes = { pixelRatio: PropTypes.number, type: PropTypes.string, format: PropTypes.string, - filePath: PropTypes.string + filePath: PropTypes.string, + Overlay: PropTypes.func, } module.exports=ImageCrop