react-native-boxes 1.4.84 → 1.4.87

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 +3 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-boxes",
3
- "version": "1.4.84",
3
+ "version": "1.4.87",
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
@@ -23,6 +23,7 @@ export type BottomSheetProps = {
23
23
  backgroundColor?: string
24
24
  closeIcon?: string | React.ReactNode
25
25
  swipeToCloseDisabled?: boolean
26
+ containerStyle?: StyleProp<ViewStyle>
26
27
 
27
28
  }
28
29
  /**
@@ -79,7 +80,7 @@ export const BottomSheet = (props: BottomSheetProps) => {
79
80
  )
80
81
  }
81
82
  return (
82
- <View style={styles.container}>
83
+ <View style={[styles.container, props.containerStyle]}>
83
84
  <Modal
84
85
  onDismiss={() => {
85
86
 
@@ -121,6 +122,7 @@ export const BottomSheet = (props: BottomSheetProps) => {
121
122
  paddingTop: theme.dimens.space.md,
122
123
  paddingStart: theme.dimens.space.lg,
123
124
  paddingEnd: theme.dimens.space.lg,
125
+ paddingBottom: theme.insets?.bottom || 0
124
126
  }]}>
125
127
  <HBox style={{
126
128
  justifyContent: 'space-between',