fix(macos): mediaCapturePermissionGrantType is iOS only (#2313)

This commit is contained in:
Tommy Nguyen
2022-01-06 14:08:08 +01:00
committed by GitHub
parent 55b8a7702c
commit 69cafd1d20
+2
View File
@@ -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