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>
 );
} 
});

On iOS works fine. Is that a bug or a normal behaviour for android.

Karthick Kumar
  • 1,217
  • 1
  • 25
  • 38

1 Answers1

0

This is a known issue.

Webview on android doesn't load embed youtube url #6405

Nicolas Charpentier
  • 1,088
  • 1
  • 10
  • 21