@papyrus-sdk/ui-react-native 0.2.18-beta.3 → 0.2.18-beta.5

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
@@ -28542,10 +28542,14 @@ var SettingsSheet = ({
28542
28542
  const isPaged = viewMode === "single";
28543
28543
  const isDouble = viewMode === "double";
28544
28544
  const t = getStrings(locale);
28545
+ const [hasBeenVisible, setHasBeenVisible] = (0, import_react10.useState)(visible);
28545
28546
  const snapPoints = (0, import_react10.useMemo)(
28546
28547
  () => [Math.min(640, import_react_native11.Dimensions.get("window").height * 0.72)],
28547
28548
  []
28548
28549
  );
28550
+ (0, import_react10.useEffect)(() => {
28551
+ if (visible) setHasBeenVisible(true);
28552
+ }, [visible]);
28549
28553
  const renderBackdrop = (0, import_react10.useCallback)(
28550
28554
  (props) => /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
28551
28555
  import_bottom_sheet2.BottomSheetBackdrop,
@@ -28584,6 +28588,7 @@ var SettingsSheet = ({
28584
28588
  engine.setZoom(next);
28585
28589
  setDocumentState({ zoom: next });
28586
28590
  };
28591
+ if (!hasBeenVisible) return null;
28587
28592
  return /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(import_react_native11.View, { style: styles11.modalRoot, pointerEvents: "box-none", children: /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
28588
28593
  import_bottom_sheet2.default,
28589
28594
  {