diff --git a/index.d.ts b/index.d.ts index b3975a0..2a4f64f 100644 --- a/index.d.ts +++ b/index.d.ts @@ -11,7 +11,9 @@ export interface ModalProps { modalDidClose?: () => void; closeOnTouchOutside?: boolean; containerStyle?: ReactNative.ViewStyle; + containerProps?: ReactNative.ViewProperties; modalStyle?: ReactNative.ViewStyle; + modalProps?: ReactNative.ViewProperties; disableOnBackPress?: boolean; } diff --git a/index.js b/index.js index e75b643..13e4915 100644 --- a/index.js +++ b/index.js @@ -142,7 +142,8 @@ class Modal extends Component { return ( + style={containerStyles} + {...this.props.containerProps}> + ]} + {...this.props.modalProps}> {children}