【文件属性】:
文件名称:react-native-android-fullscreen-webview:在Android上支持全屏视频的React Native WebView组件
文件大小:18KB
文件格式:ZIP
更新时间:2021-05-02 10:18:04
Java
react-native-android-fullscreen-webview
概述
默认情况下,React Native随附的WebView组件无法显示全屏。 该软件包实质上复制了现有的Android版WebView,并添加了一些额外的功能来启用全屏视频。 iOS默认情况下支持此行为,因此将仅使用本机iOS WebView。
入门
yarn add hummingbird-me/react-native-android-fullscreen-webview
自动链接库
react-native link
更新AndroidManifest.xml
在您的主要活动下,确保添加以下内容:
android:configChanges="orientation"
android:hardwareAccelerated="true"
例子:
<activity
android:nam
【文件预览】:
react-native-android-fullscreen-webview-master
----.gitattributes(15B)
----android()
--------src()
--------build.gradle(565B)
----README.md(1KB)
----iosWebView.js(65B)
----androidWebView.js(14KB)
----.gitignore(430B)
----index.js(236B)
----package-lock.json(434B)
----package.json(833B)