@papyrus-sdk/ui-react-native 0.2.18-beta.2 → 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 CHANGED
@@ -24041,9 +24041,6 @@ function DedicatedAndroidPdfViewer({
24041
24041
  setSelection(null);
24042
24042
  selectionRef.current = null;
24043
24043
  }, []);
24044
- if (!engineId) {
24045
- return /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_react_native3.View, { style: styles3.container });
24046
- }
24047
24044
  return /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(import_react_native3.View, { style: styles3.container, children: [
24048
24045
  /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
24049
24046
  import_engine_native2.PapyrusPdfViewerView,
@@ -28545,10 +28542,15 @@ var SettingsSheet = ({
28545
28542
  const isPaged = viewMode === "single";
28546
28543
  const isDouble = viewMode === "double";
28547
28544
  const t = getStrings(locale);
28545
+ const [hasBeenVisible, setHasBeenVisible] = (0, import_react10.useState)(visible);
28548
28546
  const snapPoints = (0, import_react10.useMemo)(
28549
28547
  () => [Math.min(640, import_react_native11.Dimensions.get("window").height * 0.72)],
28550
28548
  []
28551
28549
  );
28550
+ (0, import_react10.useEffect)(() => {
28551
+ if (visible) setHasBeenVisible(true);
28552
+ }, [visible]);
28553
+ if (!hasBeenVisible) return null;
28552
28554
  const renderBackdrop = (0, import_react10.useCallback)(
28553
28555
  (props) => /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
28554
28556
  import_bottom_sheet2.BottomSheetBackdrop,