Last active
November 28, 2025 15:16
-
-
Save michaelpomogajko/5afdb0f01dc005c9168f2fbd5b8ad545 to your computer and use it in GitHub Desktop.
sonner-native+0.21.1.patch
This file contains hidden or 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
| diff --git a/node_modules/sonner-native/lib/module/positioner.js b/node_modules/sonner-native/lib/module/positioner.js | |
| index 476f6bb..961fbc1 100644 | |
| --- a/node_modules/sonner-native/lib/module/positioner.js | |
| +++ b/node_modules/sonner-native/lib/module/positioner.js | |
| @@ -49,9 +49,11 @@ export const Positioner = ({ | |
| } | |
| return {}; | |
| }, [position, bottom, top, offset]); | |
| + | |
| + const hasChildren = React.Children.count(children) > 0; | |
| return /*#__PURE__*/_jsx(View, { | |
| style: [containerStyle, insetValues, style], | |
| - pointerEvents: "box-none", | |
| + pointerEvents: hasChildren ? "box-none" : "none", | |
| ...props, | |
| children: children | |
| }); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment