React-Native: WebView unable to play Youtube video in full screen on android

Viewed 872

I have loads a html page on web viewe, the html page has embedded YouTube url. When this page load on web view and play YouTube video: In iOS it's played in full screen, but in android play only particular area that is defined in HTML. Here is my code,,

return (
  <WebView
    source={{uri: property.url}}
    style={styles.webStyle}
    javaScriptEnabled={true}
    builtInZoomControls={false}
    mediaPlaybackRequiresUserAction={false}
    startInLoadingState={true}

  />
);
0 Answers
Related