react-native-boxes 1.4.12 → 1.4.13

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/Modal.tsx +8 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-boxes",
3
- "version": "1.4.12",
3
+ "version": "1.4.13",
4
4
  "description": "A react native library for rapid development of UI using boxes",
5
5
  "main": "src/index.js",
6
6
  "scripts": {
package/src/Modal.tsx CHANGED
@@ -357,7 +357,14 @@ export type DropDownViewProps = {
357
357
  displayType?: 'button' | 'input',
358
358
  onRenderOption?: (opt: DropDownViewOption) => any,
359
359
  forceDialogSelectOnWeb?: Boolean
360
+ swipeToCloseDisabled?: boolean
360
361
  } & ViewProps
362
+
363
+ /**
364
+ * set swipeToCloseDisabled = true if you face issues with scrolling
365
+ * @param props
366
+ * @returns
367
+ */
361
368
  export const DropDownView = (props: DropDownViewProps) => {
362
369
  const displayType = props.displayType || 'input'
363
370
  const theme = useContext(ThemeContext)
@@ -404,6 +411,7 @@ export const DropDownView = (props: DropDownViewProps) => {
404
411
  return (
405
412
  <VBox style={props.style}>
406
413
  <BottomSheet
414
+ swipeToCloseDisabled={props.swipeToCloseDisabled}
407
415
  visible={visible as boolean}
408
416
  onDismiss={() => {
409
417
  setVisible(false)