Video is not working in react native(android)
<pre><code>import React, { Component } from 'react';

import {AppRegistry,StyleSheet,Text,Alert,TouchableOpacity,View,ScrollView,Image,WebView,ListView,Linking } from 'react-native';

import Video from 'react-native-video';

 class SampleRow extends React.Component{

 constructor(props) {
super(props);
this.onLoad = this.onLoad.bind(this);
this.onProgress = this.onProgress.bind(this);
 }

 state = {
rate: 1,
volume: 1,
muted: false,
resizeMode: 'contain',
duration: 0.0,
currentTime: 0.0,
  };

 onLoad(data) {
this.setState({duration: data.duration});
  }

 onProgress(data) {
this.setState({currentTime: data.currentTime});
 }

  render() {
return (
  &lt;View &gt;
   &lt;Video source={{uri:"https://www.youtube.com/watch?v=gQOaYQs07fc"}}
   style={styles.backgroundVideo}
 rate={this.state.rate} 
 volume={this.state.volume}
 muted={this.state.muted} 
 resizeMode={this.state.resizeMode} 
 onLoadStart={() =&gt; {console.warn("loading started");}} 
 onLoad={() =&gt; {console.warn("loading done");}} 
 onProgress={this.onProgress} 
 onEnd={() =&gt; { this.refs.myVideo.refs.node.seek(0) }} repeat={true}
   /&gt;
   &lt;/View&gt;

    );
   }
  }

  var styles = StyleSheet.create({
  backgroundVideo: {
   position: 'absolute',
     top: 0,
    left: 0,
   bottom: 0,
  right: 0
   }
  });

 AppRegistry.registerComponent('smart', () =&gt; SampleRow);
</code></pre>

<p>Tried both local and remote video. Nothing works. Blank page in output.</p>

<p>Above code is reference from <a href="https://github.com/react-native-community/react-native-video/blob/master/example/index.android.js" rel="nofollow noreferrer">https://github.com/react-native-community/react-native-video/blob/master/example/index.android.js</a></p>

<p>Refereed here <a href="https://github.com/react-native-community/react-native-video/issues/174" rel="nofollow noreferrer">https://github.com/react-native-community/react-native-video/issues/174</a> but nothing helps</p>

<p>Expecting output like this <a href="https://www.youtube.com/watch?v=TPGNgovQlRc" rel="nofollow noreferrer">https://www.youtube.com/watch?v=TPGNgovQlRc</a></p>