Fix formatting
This commit is contained in:
parent
ab1f181961
commit
e2e6e168fe
@ -229,9 +229,9 @@ RCT_ENUM_CONVERTER(CKCameraZoomMode, (@{
|
||||
|
||||
+ (void)setFlashMode:(AVCaptureFlashMode)flashMode forDevice:(AVCaptureDevice *)device
|
||||
{
|
||||
if ( device.hasFlash && [device isFlashModeSupported:flashMode] ) {
|
||||
if (device.hasFlash && [device isFlashModeSupported:flashMode] ) {
|
||||
NSError *error = nil;
|
||||
if ( [device lockForConfiguration:&error] ) {
|
||||
if ([device lockForConfiguration:&error] ) {
|
||||
device.flashMode = flashMode;
|
||||
[device unlockForConfiguration];
|
||||
} else {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user