@dloizides/ui-layout 1.40.0 → 1.40.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.mjs CHANGED
@@ -1951,7 +1951,8 @@ var BottomSheet = ({
1951
1951
  useFocusTrap(panelRef, visible && panel.mounted, initialFocusTestID);
1952
1952
  useEscapeKey(visible, onClose);
1953
1953
  useScrollLock(visible);
1954
- return /* @__PURE__ */ jsx(Modal$1, { transparent: true, visible: panel.mounted || backdrop.mounted, onRequestClose: onClose, children: /* @__PURE__ */ jsxs(View, { style: styles17.root, children: [
1954
+ const hardwareBackClose = Platform.OS === "web" ? void 0 : onClose;
1955
+ return /* @__PURE__ */ jsx(Modal$1, { transparent: true, visible: panel.mounted || backdrop.mounted, onRequestClose: hardwareBackClose, children: /* @__PURE__ */ jsxs(View, { style: styles17.root, children: [
1955
1956
  /* @__PURE__ */ jsx(Animated.View, { style: [StyleSheet.absoluteFill, styles17.backdrop, { opacity: backdrop.style.opacity }] }),
1956
1957
  /* @__PURE__ */ jsx(
1957
1958
  Pressable,