@papyrus-sdk/ui-react-native 0.2.18-beta.5 → 0.2.18-beta.6
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 +0 -5
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +22 -27
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -28542,14 +28542,10 @@ 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);
|
|
28546
28545
|
const snapPoints = (0, import_react10.useMemo)(
|
|
28547
28546
|
() => [Math.min(640, import_react_native11.Dimensions.get("window").height * 0.72)],
|
|
28548
28547
|
[]
|
|
28549
28548
|
);
|
|
28550
|
-
(0, import_react10.useEffect)(() => {
|
|
28551
|
-
if (visible) setHasBeenVisible(true);
|
|
28552
|
-
}, [visible]);
|
|
28553
28549
|
const renderBackdrop = (0, import_react10.useCallback)(
|
|
28554
28550
|
(props) => /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
|
|
28555
28551
|
import_bottom_sheet2.BottomSheetBackdrop,
|
|
@@ -28588,7 +28584,6 @@ var SettingsSheet = ({
|
|
|
28588
28584
|
engine.setZoom(next);
|
|
28589
28585
|
setDocumentState({ zoom: next });
|
|
28590
28586
|
};
|
|
28591
|
-
if (!hasBeenVisible) return null;
|
|
28592
28587
|
return /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(import_react_native11.View, { style: styles11.modalRoot, pointerEvents: "box-none", children: /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
|
|
28593
28588
|
import_bottom_sheet2.default,
|
|
28594
28589
|
{
|