@papyrus-sdk/ui-react-native 0.2.18-beta.3 → 0.2.18-beta.4
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 +5 -0
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +27 -22
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -28542,10 +28542,15 @@ 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]);
|
|
28553
|
+
if (!hasBeenVisible) return null;
|
|
28549
28554
|
const renderBackdrop = (0, import_react10.useCallback)(
|
|
28550
28555
|
(props) => /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
|
|
28551
28556
|
import_bottom_sheet2.BottomSheetBackdrop,
|