Skip to content
Discussion options

You must be logged in to vote

Unfortunately, overlaying React Native components on top of a fullscreen WebView is not technically possible due to platform limitations. When a WebView enters native fullscreen mode, it operates at the OS level above the React Native view hierarchy, making it impossible for React Native components to render on top.

Why This Doesn't Work

// ❌ This approach doesn't work
<View style={styles.container}>
  <WebView allowsFullscreenVideo={true} />
  <View style={styles.overlay}>
    <Text>This won't show in fullscreen</Text>
  </View>
</View>

The fundamental issues:

  • Native fullscreen WebView renders in a separate layer
  • React Native components cannot access this native fullscreen context
  • Touch…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by sssajjad007
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants