-
-
Notifications
You must be signed in to change notification settings - Fork 537
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: try to apply pointer events behaviors in overlay (#1582)
## Description PR adding support for `pointerEvents` behaviors in `FullWindowOverlay` component. ## Test code and steps to reproduce `Test1096.tsx` ## Checklist - [ ] Included code example that can be used to test this change - [ ] Updated TS types - [ ] Updated documentation: <!-- For adding new props to native-stack --> - [ ] https://github.com/software-mansion/react-native-screens/blob/main/guides/GUIDE_FOR_LIBRARY_AUTHORS.md - [ ] https://github.com/software-mansion/react-native-screens/blob/main/native-stack/README.md - [ ] https://github.com/software-mansion/react-native-screens/blob/main/src/types.tsx - [ ] https://github.com/software-mansion/react-native-screens/blob/main/src/native-stack/types.tsx - [ ] Ensured that CI passes
- Loading branch information
Showing
5 changed files
with
65 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
02d7311
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey, been diving deep into creating a toast component inside my native stacks, I am using the FullWindowOverlay, but my panResponders / touch events are not firing. Trying to utilize this FullWindowOverlay it looks like you are working on to be able to show my Toast notifications over the NativeStack Modal. It works in doing so, and whatever stack I currently on, while wrapping my Toast component with FullWindowOverlay, the Toast shows above the current stack, whether that is my normal BottomTab stack or Modal stack. The only issue im running into is not being able to register any gestures / taps on my actual Toast component when it is wrapped inside the FullWindowOverlay. I am however able to touch and scroll on the Stack that is currently being shown under the FullWindowOverlay. Any ideas as to why this is happening? I can also provide code snippets if that helps.
Thank you for taking the time to read this and hopefully be able to help me out!