作者 周泳恩

Fix. Ios width

... ... @@ -836,7 +836,7 @@ RCT_EXPORT_METHOD(openCropper:(NSDictionary *)options
// Returns a custom path for the mask.
- (UIBezierPath *)imageCropViewControllerCustomMaskPath:
(RSKImageCropViewController *)controller {
CGRect rect = [self scaleRect:controller];
CGRect rect = controller.maskRect;
UIBezierPath *path = [UIBezierPath bezierPathWithRoundedRect:rect
byRoundingCorners:UIRectCornerAllCorners
cornerRadii:CGSizeMake(0, 0)];
... ... @@ -846,7 +846,7 @@ RCT_EXPORT_METHOD(openCropper:(NSDictionary *)options
// Returns a custom rect in which the image can be moved.
- (CGRect)imageCropViewControllerCustomMovementRect:
(RSKImageCropViewController *)controller {
return [self scaleRect:controller];
return controller.maskRect;
}
#pragma mark - CropFinishDelegate
... ...