@unifold/connect-react-native 0.1.56 → 0.1.57

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.d.mts CHANGED
@@ -392,6 +392,12 @@ interface BottomSheetProps {
392
392
  * multi-screen modal instead of navigating back one step). */
393
393
  onBackdropPress?: () => void;
394
394
  enablePanDownToClose?: boolean;
395
+ /** Handler for the Android hardware/system back button (the Modal's
396
+ * `onRequestClose`). Defaults to `onClose`. Provide this when the system
397
+ * back button should behave differently from pan-down (e.g. step back one
398
+ * screen in a multi-screen modal instead of fully dismissing it). Has no
399
+ * effect on iOS, where Modals have no `onRequestClose`. */
400
+ onRequestClose?: () => void;
395
401
  showHandle?: boolean;
396
402
  heightPercent?: number;
397
403
  maxHeightPercent?: number;
@@ -409,7 +415,7 @@ interface BottomSheetProps {
409
415
  * Use this for sheets that must appear on top of an already-open Modal (iOS limitation). */
410
416
  useModal?: boolean;
411
417
  }
412
- declare function BottomSheet({ visible, onClose, children, closeOnBackdropPress, onBackdropPress, enablePanDownToClose, showHandle, heightPercent, maxHeightPercent, startExpanded, noPadding, borderTopLeftRadius, borderTopRightRadius, marginHorizontal: marginH, marginBottom: marginBottomProp, overlay, useModal: useModalProp, }: BottomSheetProps): React$1.JSX.Element | null;
418
+ declare function BottomSheet({ visible, onClose, children, closeOnBackdropPress, onBackdropPress, enablePanDownToClose, onRequestClose, showHandle, heightPercent, maxHeightPercent, startExpanded, noPadding, borderTopLeftRadius, borderTopRightRadius, marginHorizontal: marginH, marginBottom: marginBottomProp, overlay, useModal: useModalProp, }: BottomSheetProps): React$1.JSX.Element | null;
413
419
 
414
420
  /** Controls which transfer crypto input variant is rendered */
415
421
  type TransferInputVariant = "single_input" | "double_input" | "compact";
package/dist/index.d.ts CHANGED
@@ -392,6 +392,12 @@ interface BottomSheetProps {
392
392
  * multi-screen modal instead of navigating back one step). */
393
393
  onBackdropPress?: () => void;
394
394
  enablePanDownToClose?: boolean;
395
+ /** Handler for the Android hardware/system back button (the Modal's
396
+ * `onRequestClose`). Defaults to `onClose`. Provide this when the system
397
+ * back button should behave differently from pan-down (e.g. step back one
398
+ * screen in a multi-screen modal instead of fully dismissing it). Has no
399
+ * effect on iOS, where Modals have no `onRequestClose`. */
400
+ onRequestClose?: () => void;
395
401
  showHandle?: boolean;
396
402
  heightPercent?: number;
397
403
  maxHeightPercent?: number;
@@ -409,7 +415,7 @@ interface BottomSheetProps {
409
415
  * Use this for sheets that must appear on top of an already-open Modal (iOS limitation). */
410
416
  useModal?: boolean;
411
417
  }
412
- declare function BottomSheet({ visible, onClose, children, closeOnBackdropPress, onBackdropPress, enablePanDownToClose, showHandle, heightPercent, maxHeightPercent, startExpanded, noPadding, borderTopLeftRadius, borderTopRightRadius, marginHorizontal: marginH, marginBottom: marginBottomProp, overlay, useModal: useModalProp, }: BottomSheetProps): React$1.JSX.Element | null;
418
+ declare function BottomSheet({ visible, onClose, children, closeOnBackdropPress, onBackdropPress, enablePanDownToClose, onRequestClose, showHandle, heightPercent, maxHeightPercent, startExpanded, noPadding, borderTopLeftRadius, borderTopRightRadius, marginHorizontal: marginH, marginBottom: marginBottomProp, overlay, useModal: useModalProp, }: BottomSheetProps): React$1.JSX.Element | null;
413
419
 
414
420
  /** Controls which transfer crypto input variant is rendered */
415
421
  type TransferInputVariant = "single_input" | "double_input" | "compact";