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.
- package/package.json +1 -1
- package/src/Modal.tsx +3 -2
package/package.json
CHANGED
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}
|
|
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>
|