-
Notifications
You must be signed in to change notification settings - Fork 59
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
NativeStackNavigation modals result in notifications beneath the modal #95
Comments
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
@z1haze Thanks a bunch |
wonder if there is a downside of doing this? |
There was a downside, the GestureHandler stopped working <FullWindowOverlay>
<GestureHandlerRootView >
...
</ GestureHandlerRootView >
</FullWindowOverlay> |
this solution is stopped working in expo 51, the screen is just freezing everytime i'm wrapping my app with |
Hello 👋 <GestureHandlerRootView>
<NotifierWrapper useRNScreensOverlay>
// ...app code
</NotifierWrapper>
</GestureHandlerRootView> It was tested on the latest Expo (51) with Expo Go and on the Bare React Native app without Expo. |
Hello @seniv, i have a question regarding to theese changes here: I need to implement notifications which render behind the a rn-navigation transparentModals but only for a specific stack. Is this still possible with the changes that have been made here, cause with version 2.0.0 all my notifications are rendered on top of theese modals even with useRNScreensOverlay set to false? I.E I would like to have a Notifier Provider around my app which renders Notifications which need to be handled as mentioned in this issue (Always on top of everything) Thanks in advance |
@tastydev Hello, that's an interesting case. First of all, I want to clarify a few questions:
If you don't have If you want to render a second instance of Also, it would be helpful if you can share a a code where I can reproduce the issue |
Hey @seniv, thanks for your response i am currently using the following Package versions:
As mentioning above To workaround my issue i added a Zustand store to conditionally render the notification if a modal is present where i wan't to give the modal screen more "priority". |
Hi! 👋
Firstly, thanks for your work on this project! 🙂
Today I used patch-package to patch
[email protected]
for the project I'm working on.When using a NativeStackNavigator on iOS, notifications are forced beneath modal screens. This is due to how iOS treats modals, and that is to always force them to the top. We can use the
FullWindowOverlay
component provided by react-native-screens to conditionally wrap the notification for iOS only, which results in notifications being positioned on top of modals where they belong, and no change on android.Here is the diff that solved my problem:
This issue body was partially generated by patch-package.
The text was updated successfully, but these errors were encountered: