diff --git a/README.md b/README.md index 23be6a5..6ed7c14 100644 --- a/README.md +++ b/README.md @@ -16,7 +16,6 @@ import Modal from 'react-native-simple-modal'; undefined} @@ -25,6 +24,10 @@ import Modal from 'react-native-simple-modal'; containerStyle={{ justifyContent: 'center' }} + overlayStyle={{ + backgroundColor: 'rgba(0, 0, 0, 0.75)', + flex: 1 + }} modalStyle={{ borderRadius: 2, margin: 20, diff --git a/index.js b/index.js index e75b643..ac63ba0 100644 --- a/index.js +++ b/index.js @@ -27,7 +27,6 @@ class Modal extends Component { static defaultProps = { open: false, offset: 0, - overlayBackground: 'rgba(0, 0, 0, 0.75)', animationDuration: 200, animationTension: 40, modalDidOpen: () => undefined, @@ -148,7 +147,11 @@ class Modal extends Component { disabled={!this.props.closeOnTouchOutside} onPress={this.close.bind(this)} activeOpacity={0.75}> - +