bugfix - camera ratio overlay sometimes isn't shown

This commit is contained in:
Ran Greenberg 2016-11-09 17:48:21 +02:00
parent d389fd24e8
commit 6f9899c68f
2 changed files with 3 additions and 2 deletions

View File

@ -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];
}

View File

@ -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,