react-native-modal
Advanced tools
Comparing version 3.0.0 to 3.0.1
{ | ||
"name": "react-native-modal", | ||
"version": "3.0.0", | ||
"version": "3.0.1", | ||
"description": "An enhanced React-Native modal", | ||
@@ -5,0 +5,0 @@ "main": "src/index.js", |
@@ -45,4 +45,4 @@ import React, { Component } from 'react'; | ||
isVisible: false, | ||
hideOnBack: true, | ||
hideOnBackdropPress: true, | ||
hideOnBack: false, | ||
hideOnBackdropPress: false, | ||
onBackdropPress: () => null, | ||
@@ -129,6 +129,6 @@ onBackButtonPress: () => null, | ||
if (this.props.hideOnBackdropPress) { | ||
this._close() | ||
this._close(); | ||
} | ||
this.props.onBackdropPress() | ||
} | ||
this.props.onBackdropPress(); | ||
}; | ||
@@ -176,3 +176,7 @@ render() { | ||
ref={ref => (this.contentRef = ref)} | ||
style={[{ margin: deviceWidth * 0.05, transform: [{translateY: 0}] }, styles.content, style]} | ||
style={[ | ||
{ margin: deviceWidth * 0.05, transform: [{ translateY: 0 }] }, | ||
styles.content, | ||
style, | ||
]} | ||
pointerEvents="box-none" | ||
@@ -179,0 +183,0 @@ {...otherProps} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
15364
245