React native 如何在没有webview的情况下将vimeo player嵌入react native?
我的react本机应用程序需要一个vimeo播放器,但它不能是网络视图。有些应用程序具有这种行为,但我找不到它的libsReact native 如何在没有webview的情况下将vimeo player嵌入react native?,react-native,vimeo,React Native,Vimeo,我的react本机应用程序需要一个vimeo播放器,但它不能是网络视图。有些应用程序具有这种行为,但我找不到它的libs const html = `<iframe ... src="https://player.vimeo.com/video/${video.id}"></iframe>` <WebView ... source={{ html }} /> consthtml=` 此代码段是我当前的播放器,但它不能为成为webview提供良好的用户体
const html = `<iframe ... src="https://player.vimeo.com/video/${video.id}"></iframe>`
<WebView ... source={{ html }} />
consthtml=`
此代码段是我当前的播放器,但它不能为成为webview提供良好的用户体验。您可以使用此模块<代码>反应本机Vimeo播放器 您可以运行npm install react native vimeo 用法
console.log('Video is ready')}
onPlay={()=>console.log('Video is playing')}
onPlayProgress={data=>console.log('Video progress data:',data)}
onFinish={()=>console.log('Video is finished')}
/>
您解决了这个问题吗?