title: Trying to display a video inside a modal in react native
body: <p>I am trying to display a youtube video inside a modal in react native.</p>
  
  <p>Video gets displayed in the normal view(I.e., without a modal window) ,but I am not display the same video when it’s inside a modal.</p>
  
  <p>Things I have tried so far:</p>
  
  <p>//screen1.js</p>
  
  <pre><code>const [isVisible, setVisible] = useState(false);
  
  &lt;Touchable
            onPress={() =&gt; setVisible(true)}
            style={{
              minHeight: 200,
              backgroundColor: Colors.Black
            }}&gt;
            &lt;Text&gt;&lt;/Text&gt;
          &lt;/Touchable&gt;
  
  
  &lt;Modal isVisible={isVisible} onBackdropPress={() =&gt; setVisible(false)}&gt;
          &lt;View style={{ maxHeight: 400, backgroundColor: 'white' }}&gt;
            &lt;WebView
              javaScriptEnabled={true}
              source={{
                uri: 'https://www.youtube.com/embed/RJa4kG1N3d0'
              }}
            /&gt;
          &lt;/View&gt;
    &lt;/Modal&gt;
  </code></pre>
  
  <p>PS : I have used modal  from ‘'react-native-modal';</p>