Skip to content

Commit f14a2ad

Browse files
paufaupaufau
authored andcommitted
Merge branch 'develop'
2 parents c1657fe + 1ab63e1 commit f14a2ad

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,9 @@ const YourComponent = () => {
4646

4747
## Properties
4848

49-
### `style?: ViewStyle`
49+
### `contentContainerStyle?: ViewStyle`
5050

51-
Controls styles of the view which contains content
51+
Styles of the content wrapper.
5252

5353
---
5454

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-native-multiple-modals",
3-
"version": "1.0.1",
3+
"version": "1.1.0",
44
"description": "Native implementation with the ability to display multiple Modals",
55
"author": "Pavel Pakseev <[email protected]> (https://github.com/paufau)",
66
"license": "MIT",

src/ModalView.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ export type ModalViewProps = {
2626
children: ReactNode;
2727
renderBackdrop?: () => ReactNode;
2828
onRequestDismiss?: (calledBy: DismissalSource) => void;
29-
style?: StyleProp<ViewStyle>;
29+
contentContainerStyle?: StyleProp<ViewStyle>;
3030
backdropProps?: BackdropProps;
3131
};
3232

@@ -35,7 +35,7 @@ export const ModalView: FC<ModalViewProps> = ({
3535
renderBackdrop,
3636
onRequestDismiss,
3737
backdropProps,
38-
style,
38+
contentContainerStyle,
3939
}) => {
4040
const windowDimensions = useWindowDimensions();
4141
const fullScreenStyle = [windowDimensions, styles.container];
@@ -64,7 +64,7 @@ export const ModalView: FC<ModalViewProps> = ({
6464
<ScrollContextResetter>
6565
<View
6666
pointerEvents='box-none'
67-
style={[windowDimensions, styles.content, style]}
67+
style={[windowDimensions, styles.content, contentContainerStyle]}
6868
>
6969
{children}
7070
</View>

0 commit comments

Comments
 (0)