react-native-modal
Advanced tools
Comparing version 2.0.2 to 2.2.0
{ | ||
"name": "react-native-modal", | ||
"version": "2.0.2", | ||
"version": "2.2.0", | ||
"description": "An enhanced React-Native modal", | ||
@@ -5,0 +5,0 @@ "main": "src/index.js", |
# react-native-modal | ||
An enhanced, animated and customizable react-native modal. | ||
Previously known as `react-native-animated-modal`. | ||
# Warning | ||
This name was previously known as `react-native-animated-modal`. | ||
Please upgrade your version to this new `react-native-modal`. | ||
# Gifs! | ||
@@ -72,2 +68,4 @@ <p align="center"> | ||
| backdropTransitionOutTiming | number | 300 | The backdrop hide timing (in ms) | | ||
| hideOnBack | bool | true | Hide the modal on back button press? | | ||
| onBackButtonPress | func | () => null | Called when the Android back button is pressed | | ||
| isVisible | bool | **REQUIRED** | Show the modal? | | ||
@@ -74,0 +72,0 @@ | children | node | **REQUIRED** | The modal content | |
@@ -22,2 +22,3 @@ import React, { Component, PropTypes } from 'react'; | ||
hideOnBack: PropTypes.bool, | ||
onBackButtonPress: PropTypes.func, | ||
style: PropTypes.any, | ||
@@ -39,2 +40,3 @@ }; | ||
hideOnBack: true, | ||
onBackButtonPress: () => null, | ||
}; | ||
@@ -98,2 +100,4 @@ | ||
} | ||
this.props.onBackButtonPress(); | ||
}; | ||
@@ -100,0 +104,0 @@ |
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
141540
165
80