LonelyCpp / react-native-youtube-iframe

A wrapper of the Youtube-iframe API built for react native.
https://lonelycpp.github.io/react-native-youtube-iframe/
MIT License
598 stars 153 forks source link

How to set video component size in 9:16? When I set width & height props, video component seems be controlled in 16:9 scale. #245

Closed Nicksapp closed 2 years ago

Nicksapp commented 2 years ago

How to set video component size in 9:16? When I set width & height props, video component seems be controlled in 16:9 scale.

image

Can see that I set Player size to height:400, width:290, but video height can't set to 400.

LonelyCpp commented 2 years ago

if you want the player to expand into a custom height and ignore aspect-ratio, you can try this - https://github.com/LonelyCpp/react-native-youtube-iframe/issues/13#issuecomment-611753123