[英]Adjust cropper instead of image zoom react native image crop picker
我正在尝试调整裁纸器,而不是放大和缩小图像。
我正在使用react-native-image-crop-picker
。 我希望裁纸机移动而不是单击图像。
这是我的代码:
imageCropView(){
ImagePicker.openCropper({
hideBottomControls:true,
path: this.state.path,
width: 300,
height: 400
}).then(image => {
console.log(image);
this.setState({
path:image.path
},()=>{
let arr = this.state.imagesArr;
arr.push(this.state.path);
this.setState({
imagesArr:arr,path:null
})
})
});
}
通过使用属性来完成:
freeStyleCropEnabled
为true
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.