bugfix - camera ratio overlay sometimes isn't shown
This commit is contained in:
parent
d389fd24e8
commit
6f9899c68f
|
@ -365,7 +365,8 @@ RCT_ENUM_CONVERTER(CKCameraZoomMode, (@{
|
|||
}
|
||||
|
||||
-(void)setOverlayRatioView {
|
||||
if (!self.cameraOverlayView && self.ratioOverlayString) {
|
||||
if (self.ratioOverlayString) {
|
||||
[self.cameraOverlayView removeFromSuperview];
|
||||
self.cameraOverlayView = [[CKCameraOverlayView alloc] initWithFrame:self.bounds ratioString:self.ratioOverlayString overlayColor:self.ratioOverlayColor];
|
||||
[self addSubview:self.cameraOverlayView];
|
||||
}
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
"publishConfig": {
|
||||
"registry": "https://registry.npmjs.org/"
|
||||
},
|
||||
"version": "4.0.0",
|
||||
"version": "3.0.6",
|
||||
"description": "Advanced native camera control with pre-defined aspect ratio, crop, etc",
|
||||
"author": "Nataliia Hrankina <nataliag@wix.com>",
|
||||
"nativePackage": true,
|
||||
|
|
Loading…
Reference in New Issue