title: How to make the video fit in view in React Native?
body: <p>I'm using <code>react-native-video</code></p>
  
  <pre><code>&lt;View style={styles.videoView}&gt;
       &lt;Video 
           source={{ uri: strings.sourceUri+"posts/"+this.state.videoSrc }} 
           ref={(ref) =&gt; { this.player = ref }}           
           repeat={true}
           resizeMode="contain"                    
           style={styles.videoStyle}
       /&gt;
  &lt;/View&gt;
  </code></pre>
  
  <p><strong>Styles</strong></p>
  
  <pre><code>videoView: {
    justifyContent:'center', 
    alignItems: 'center', 
    flex: 1,
    flexDirection: 'column',
  },
  videoStyle: {
    position: 'absolute',
    top: 0,
    left: 0,
    bottom: 0,
    right: 0,
  },
  </code></pre>
  
  <p>So I'm fetching a video from api. And I want to show it in my flatlist. But the video is either getting small if I use <code>resizeMode="contain"</code> or the size gets bigger if I used  <code>resizeMode="cover"</code>. Can someone please tell me how can I do <strong>scaling</strong> of my video so that it fits in the view.</p>
  
  <p>I'm using <code>react-native-camera</code>. Please help me, I'm stuck on it since yesterday. </p>