我试图在我的本机应用程序中嵌入youtube视频,它工作正常,但我无法获得这些视频的全屏按钮/功能 . 我的代码是

<WebView
  source={{uri: "https://www.youtube.com/embed/VaC9CivyV7I?version=3&enablejsapi=1&rel=0&autoplay=1&showinfo=0&controls=1&modestbranding=0"}}
style={{height:240, width:width, justifyContent:'center', alignItems:'center', backgroundColor:'black'}}
 />

我甚至尝试使用 iframe 作为html与 allowfullscren="true" ,但我没有_624314知道如何做到这一点,所以请帮忙,

Edit

经过一些搜索,我遇到了这个文件for Full screen support,并且知道我需要在 webView.setWebChromeClient 中实现 onShowCustomViewonHideCustomView ,我在我的应用程序的node_modules文件夹中挖了一点,并在位置"../node_modules/react-native/ReactAndroid/src/main/java/com/facebook/react/views/webview/ReactWebViewManager.java"找到 ReactWebViewManager.java ,似乎可能需要添加一些自定义代码webView.setWebChromeClient,但由于我在原生编程方面不是那么好,因此没有得到如何进一步