dhre-ui-kit 3.4.2 → 3.5.0

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.
@@ -22,6 +22,12 @@ export interface BottomDrawerProps {
22
22
  backdropOpacity?: number;
23
23
  propagateSwipe?: boolean;
24
24
  swipeDirection?: string;
25
+ /** Forwarded to react-native-modal. Defaults to true (today's behavior: content
26
+ * hosted in Android's native Dialog window). Set false to render inline in the
27
+ * normal view tree instead — required on Android to work around a known RN core
28
+ * bug (RN >=0.76, old architecture) where a ScrollView inside RN's native <Modal>
29
+ * loses scroll on initial mount: https://github.com/facebook/react-native/issues/48822 */
30
+ coverScreen?: boolean;
25
31
  footer?: React.ReactNode;
26
32
  rightTitleVariant?: string;
27
33
  rightTitle?: string;
package/lib/index.js CHANGED
@@ -1705,6 +1705,7 @@ const BottomDrawer = ({
1705
1705
  footer,
1706
1706
  propagateSwipe = true,
1707
1707
  swipeDirection = "down",
1708
+ coverScreen = true,
1708
1709
  rightTitleVariant = FontStyle.BODY1_MEDIUM,
1709
1710
  rightTitle,
1710
1711
  rightTitleStyle,
@@ -1721,6 +1722,7 @@ const BottomDrawer = ({
1721
1722
  hasBackdrop: showBlurView,
1722
1723
  backdropOpacity,
1723
1724
  propagateSwipe,
1725
+ coverScreen,
1724
1726
  style: { margin: 0 },
1725
1727
  hideModalContentWhileAnimating: true
1726
1728
  },