Ios 如何在react native WKWebView中使用prop allowsInlineMediaPlayback?

Ios 如何在react native WKWebView中使用prop allowsInlineMediaPlayback?,ios,react-native,wkwebview,wkwebviewconfiguration,Ios,React Native,Wkwebview,Wkwebviewconfiguration,我将ios中的WKWebview用于我的react本机项目。我的项目要求是在默认情况下禁用全屏视频。这可以在UIWebView中通过将prop allowsInlineMediaPlayback设置为true来实现,但WKWebview不支持此prop。是否有其他方法可以将此道具设置为禁用Webview中的全屏视频拍摄 <WKWebView source={{ uri: "videocheck/02_1.2_Objectives_in_financial_management.html"

我将ios中的WKWebview用于我的react本机项目。我的项目要求是在默认情况下禁用全屏视频。这可以在UIWebView中通过将prop allowsInlineMediaPlayback设置为true来实现,但WKWebview不支持此prop。是否有其他方法可以将此道具设置为禁用Webview中的全屏视频拍摄

<WKWebView
source={{
uri: "videocheck/02_1.2_Objectives_in_financial_management.html"
}}
ref={webView => (this.webView = webView)}
originWhitelist={'["*"]'}
javaScriptEnabled={true}
domStorageEnabled={true}
startInLoadingState={true}
useWebKit={true}
//scalesPageToFit={true}
scrollEnabled={false}
// onLoad={() => this.sendPostMessage()}
allowFileAccess={true}
allowUniversalAccessFromFileURLs={true}
allowFileAccessFromFileURLs={true}
allowsInlineMediaPlayback={true}
mediaPlaybackRequiresUserAction={true}
/>
(this.webView=webView)}
原始白名单={'[“*”]'}
javaScriptEnabled={true}
domStorageEnabled={true}
startInLoadingState={true}
useWebKit={true}
//scalesPageToFit={true}
scrollEnabled={false}
//onLoad={()=>this.sendPostMessage()}
allowFileAccess={true}
allowUniversalAccessFromFileURLs={true}
allowFileAccessFromFileURLs={true}
allowsInlineMediaPlayback={true}
MediaPlaybackRequiresSerAction={true}
/>