Open pedralho opened 2 years ago
Describe the bug When one try to rotate the YoutubePlayer using the style below, it's just ignored and the video keeps in the original state.
style={{ transform: [{ rotateZ: '90deg' }] }}
To Reproduce
<YoutubePlayer style={{ transform: [{ rotateZ: '90deg' }] }} height={SCREEN_WIDTH} width={SCREEN_HEIGHT} videoId={VIDEO_ID} />
Expected behavior I expected to see the video being displayed in landscape, fitting the whole screen (keeping the aspect ratio).
Smartphone (please complete the following information):
react-native-youtube-iframe
react-native-webview
Expo
Additional context Add any other context about the problem here.
Hi, Did you find any solution?
for whoever is facing the issue, try adding the style in webViewProps. its working for me in android 10, react 0.73
Describe the bug When one try to rotate the YoutubePlayer using the style below, it's just ignored and the video keeps in the original state.
style={{ transform: [{ rotateZ: '90deg' }] }}
To Reproduce
Expected behavior I expected to see the video being displayed in landscape, fitting the whole screen (keeping the aspect ratio).
Smartphone (please complete the following information):
react-native-youtube-iframe
2.1.2react-native-webview
11.6.2Expo
verison 42.0.0Additional context Add any other context about the problem here.