I have a YouTube video embedded in a React Native WebView. I'm using the react-native-android-fullscreen-webview-video library for Android which works well in both portrait and landscape mode, but I need the video to default to fullscreen when the user presses play.
I've tried other libraries for this, including react-native-youtube, but each resulted in buggy playback either in portrait or landscape.
This is my code. Everything works well, I just need fullscreen play by default.
<WebView source={{ uri: videoUrl }} />