Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FullWindowOverlay and Portal fails on react native fullscreen presentation modal #41

Open
Jonatthu opened this issue Apr 8, 2023 · 4 comments

Comments

@Jonatthu
Copy link

Jonatthu commented Apr 8, 2023

Whenever you have a react navigation full screen presentation modal, the Button element does not outputs the console.log value

I I remove and leave the rest, it would start working again.

<Portal>
	<FullWindowOverlay>
		<View className="mt-52 h-full w-full bg-red-400">
			<Button title="Hello world" onPress={() => console.log('HELLO')} />
		</View>
	</FullWindowOverlay>

</Portal>
@e-younan
Copy link

Noticed this too - just realized that a Portal component I implemented stops displaying if a "fullscreen" modal is open on iOS.

@eagleeyejack
Copy link

can confirm, seeing this too

@eagleeyejack
Copy link

eagleeyejack commented Jul 25, 2023

Doing further inspection and it looks like the Portal is being rendered behind the full screen as when I switched to presentation: "modal" on my stack, I could see it behind the stack.

Currently looking to see what I can do to render my portal "above the stack"

Can't help but this this is related: gorhom/react-native-bottom-sheet#1309

so will leave for now

@epolat-github
Copy link

Same problem on me too. I tried wrapping the content with FullWindowOverlay from react-native-screens, but that didn't work also. I built a snackbar feature for my app but it shows up behind the stack when the screen is presented as "modal" or equivalent.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants