import React, { View, WebView } from 'react-native';
export const YoutubeScreen = React.createClass({
render: function() {
return (
<View style={{flex: 1}}>
<WebView
style={{flex:1}}
javaScriptEnabled={true}
source={{uri: 'https://www.youtube.com/embed/ZZ5LpwO-An4?rel=0&autoplay=0&showinfo=0&controls=0'}}
/>
</View>
);
}
});
On iOS works fine. Is that a bug or a normal behaviour for android.
在iOS上运行正常。这是android的错误或正常行为。
1 个解决方案
#1
0
This is a known issue.
这是一个已知的问题。
Webview on android doesn't load embed youtube url #6405
Android上的Webview无法加载嵌入youtube网址#6405
#1
0
This is a known issue.
这是一个已知的问题。
Webview on android doesn't load embed youtube url #6405
Android上的Webview无法加载嵌入youtube网址#6405