react-native-boxes 1.4.72 → 1.4.73

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 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-boxes",
3
- "version": "1.4.72",
3
+ "version": "1.4.73",
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
@@ -217,6 +217,7 @@ export function Expand(props: ViewProps & {
217
217
  title?: string,
218
218
  iconName?: string,
219
219
  iconPosition?: 'left' | 'right',
220
+ leftPadding?: number,
220
221
  titleStyle?: StyleProp<TextStyle>,
221
222
  titleBackgroundColor?: string,
222
223
  iconStyle?: IconProps,
@@ -358,8 +359,8 @@ export function Expand(props: ViewProps & {
358
359
  onLayout={onLayoutContent}>
359
360
  {
360
361
  (expanded || initDone) && (
361
- <VBox onLayout={onLayoutContent} style={{
362
- paddingStart: theme.dimens.space.md * 3
362
+ <VBox onLayout={onLayoutContent} style={{
363
+ paddingStart: props.leftPadding !== undefined ? props.leftPadding : theme.dimens.space.md * 3
363
364
  }}>
364
365
  {props.children}
365
366
  </VBox>