react-native-boxes 1.4.10 → 1.4.12

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 +10 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-boxes",
3
- "version": "1.4.10",
3
+ "version": "1.4.12",
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
@@ -24,6 +24,11 @@ export type BottomSheetProps = {
24
24
  swipeToCloseDisabled?: boolean
25
25
 
26
26
  }
27
+ /**
28
+ * set swipeToCloseDisabled = true if you face issues with scrolling
29
+ * @param props
30
+ * @returns
31
+ */
27
32
  export const BottomSheet = (props: BottomSheetProps) => {
28
33
  const [modalVisible, setModalVisible] = useState(false);
29
34
  const theme = useContext(ThemeContext)
@@ -137,7 +142,11 @@ export const BottomSheet = (props: BottomSheetProps) => {
137
142
  </ScrollView>
138
143
  ) : (
139
144
  <GestureDetector gesture={fling}>
140
- {props.children}
145
+ <VBox style={{
146
+ width: '100%'
147
+ }}>
148
+ {props.children}
149
+ </VBox>
141
150
  </GestureDetector>
142
151
  )
143
152
  }