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

Topbar clicks are passing through to the screen underneath the modal #7927

Open
1 task done
Alberto-BaseNet opened this issue Oct 22, 2024 · 1 comment
Open
1 task done

Comments

@Alberto-BaseNet
Copy link

What happened?

It seems since we upgraded to react-native-navigation 7.40.1 and react-native 0.73.9 we are able to click top bar buttons through modals.

clickthrough-topbar-buttons

We used modal presentation style: modalPresentationStyle: Platform.OS === 'ios' ? overFullScreen : overCurrentContext,

What was the expected behaviour?

We should not be able to click through a modal.

Was it tested on latest react-native-navigation?

  • I have tested this issue on the latest react-native-navigation release and it still reproduces.

Help us reproduce this issue!

I tried to run the playground project but it has 110 errors compiling typescript...

In what environment did this happen?

React Native Navigation version: 7.40.1
React Native version: 0.73.9
Has Fabric (React Native's new rendering system) enabled: (yes/no) No
Node version: 18.19.1
Device model: Android Simulator + Motorola G54 5G
Android version: 14

@Alberto-BaseNet
Copy link
Author

Seems to be related to ModalPresentationStyle overCurrentContext, I managed to work around by making sure any modal with overCurrentContext (used for transparent background) is fully dismissed before opening any modal on top, if I didn't it would reproduce again.

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

No branches or pull requests

1 participant