0
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>
);
}
});
在iOS上工作正常。這是一個錯誤或Android的正常行爲。Webview on react-native android無法加載嵌入的YouTube網址
感謝Nicolas Charpentier –