@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.js CHANGED
@@ -544,7 +544,8 @@ var Modal = ({
544
544
  [theme.colors.surface, size]
545
545
  );
546
546
  const hasHeader = title !== void 0 || showClose;
547
- return /* @__PURE__ */ jsxRuntime.jsx(reactNative.Modal, { transparent: true, visible: mounted, onRequestClose: onClose, children: /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: styles6.overlay, children: [
547
+ const hardwareBackClose = reactNative.Platform.OS === "web" ? void 0 : onClose;
548
+ return /* @__PURE__ */ jsxRuntime.jsx(reactNative.Modal, { transparent: true, visible: mounted, onRequestClose: hardwareBackClose, children: /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: styles6.overlay, children: [
548
549
  /* @__PURE__ */ jsxRuntime.jsx(
549
550
  reactNative.Animated.View,
550
551
  {