Skip to content

Instantly share code, notes, and snippets.

@michaelpomogajko
Last active November 28, 2025 15:16
Show Gist options
  • Select an option

  • Save michaelpomogajko/5afdb0f01dc005c9168f2fbd5b8ad545 to your computer and use it in GitHub Desktop.

Select an option

Save michaelpomogajko/5afdb0f01dc005c9168f2fbd5b8ad545 to your computer and use it in GitHub Desktop.
sonner-native+0.21.1.patch
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