shoutem / ui

Customizable set of components for React Native applications
Other
4.91k stars 452 forks source link

How to correctly pass video into HTML Component? #406

Open esomkin opened 6 years ago

esomkin commented 6 years ago

Hi! I want to show video in HTML component, but when I pass a string

let body = '<video src="https://www.youtube.com/watch?v=vJJpnplTBeM" poster="https://img.youtube.com/vi/vJJpnplTBeM/maxresdefault.jpg"></video>';

to the component

return (<ScrollView>
    <Html body={body} style={{}}/>
</ScrollView>);

it show an error No suitable image URL loader found for (null).

How to correctly pass video into HTML Component?

helloagain-dev commented 6 years ago

It doesn't work for me either. I looked at the source code a bit and found that there seems to be a typo in html/elements/Video.js:

Also, even if I fix this the image is not shown. I guess this is an error of the image component.

andyngdz commented 6 years ago

I think you just fork this project and fix it by yourself. It seems they didn't maintenance this project anymore.