CRAlpha / CRAlpha/react-native-wkwebview
How to use the prop allowsInlineMediaPlayback in react-native-WKWebView?
- Dominant language
- Objective-C
- Stars
- 637
- Forks
- 263
- PR merge metrics
- No merged PRs in 30d
Description
I'm using WKWebview in ios for my react native project. My project requirement is to disable the vidoe taking a full screen by default. This could be done in UIWebView by setting the the prop allowsInlineMediaPlayback to true but WKWebview does not support this prop. Is there any other way I can set this prop to in order to disable the video taking full screen in my Webview?
(this.webView = webView)}
originWhitelist={'["*"]'}
javaScriptEnabled={true}
domStorageEnabled={true}
startInLoadingState={true}
useWebKit={true}
scrollEnabled={false}
allowFileAccess={true}
allowUniversalAccessFromFileURLs={true}
allowFileAccessFromFileURLs={true}
allowsInlineMediaPlayback={true}
mediaPlaybackRequiresUserAction={true}
/>
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.