@dloizides/ui-layout 1.40.2 → 1.40.3

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
@@ -538,7 +538,8 @@ var Modal = ({
538
538
  [theme.colors.surface, size]
539
539
  );
540
540
  const hasHeader = title !== void 0 || showClose;
541
- return /* @__PURE__ */ jsx(Modal$1, { transparent: true, visible: mounted, onRequestClose: onClose, children: /* @__PURE__ */ jsxs(View, { style: styles6.overlay, children: [
541
+ const hardwareBackClose = Platform.OS === "web" ? void 0 : onClose;
542
+ return /* @__PURE__ */ jsx(Modal$1, { transparent: true, visible: mounted, onRequestClose: hardwareBackClose, children: /* @__PURE__ */ jsxs(View, { style: styles6.overlay, children: [
542
543
  /* @__PURE__ */ jsx(
543
544
  Animated.View,
544
545
  {