0

I use this solution:

https://stackoverflow.com/a/52922235/2400373

This is the code:

<WebView
   source={{html: '<iframe width="100%" height="50%" src="https://www.youtube.com/embed/cqyziA30whE" frameborder="0" allow="autoplay; encrypted-media" allowfullscreen></iframe>'}}
   style={{marginTop: 20}}
/>

this works perfectly but now I need to show in a 2 or 3 iframes view, is it possible?

Now I tried this solution:

<WebView
       source={{html: '<iframe width="100%" height="50%" src="https://www.youtube.com/embed/cqyziA30whE" frameborder="0" allow="autoplay; encrypted-media" allowfullscreen></iframe><iframe width="100%" height="50%" src="https://www.youtube.com/embed/cqyziA30whE" frameborder="0" allow="autoplay; encrypted-media" allowfullscreen></iframe>'}}
       style={{marginTop: 20}}
 />

simply repeating the iframe to be shown 2 times but only shown once

juanitourquiza
  • 2,097
  • 1
  • 30
  • 52

0 Answers0