From 69cafd1d20a538426ec387fb48e4709dfe4a6afd Mon Sep 17 00:00:00 2001 From: Tommy Nguyen <4123478+tido64@users.noreply.github.com> Date: Thu, 6 Jan 2022 14:08:08 +0100 Subject: [PATCH] fix(macos): mediaCapturePermissionGrantType is iOS only (#2313) --- apple/RNCWebView.m | 2 ++ 1 file changed, 2 insertions(+) diff --git a/apple/RNCWebView.m b/apple/RNCWebView.m index fe07d89..926d31a 100644 --- a/apple/RNCWebView.m +++ b/apple/RNCWebView.m @@ -149,7 +149,9 @@ NSString *const CUSTOM_SELECTOR = @"_CUSTOM_SELECTOR_"; _savedAutomaticallyAdjustsScrollIndicatorInsets = NO; #endif _enableApplePay = NO; +#if defined(__IPHONE_OS_VERSION_MAX_ALLOWED) && __IPHONE_OS_VERSION_MAX_ALLOWED >= 150000 /* iOS 15 */ _mediaCapturePermissionGrantType = RNCWebViewPermissionGrantType_Prompt; +#endif } #if !TARGET_OS_OSX