File tree Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff line change 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" ,
Original file line number Diff line number Diff 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 >
You can’t perform that action at this time.
0 commit comments