react-native-modal
Advanced tools
Comparing version 3.0.2 to 3.1.0
{ | ||
"name": "react-native-modal", | ||
"version": "3.0.2", | ||
"version": "3.1.0", | ||
"description": "An enhanced React-Native modal", | ||
@@ -38,7 +38,7 @@ "main": "src/index.js", | ||
"babel-eslint": "^7.2.3", | ||
"eslint": "^3.5.0", | ||
"eslint": "4.5.0", | ||
"eslint-plugin-react-app": "^1.0.2", | ||
"husky": "0.13.3", | ||
"lint-staged": "3.4.1", | ||
"prettier": "^1.3.1", | ||
"husky": "0.14.3", | ||
"lint-staged": "4.0.4", | ||
"prettier": "1.6.1", | ||
"react": ">=15.0.0", | ||
@@ -45,0 +45,0 @@ "react-native": ">=0.24.0" |
@@ -18,4 +18,2 @@ declare module 'react-native-modal' { | ||
onModalHide?: () => void | ||
hideOnBack?: boolean | ||
hideOnBackdropPress?: boolean | ||
onBackButtonPress?: () => void | ||
@@ -26,5 +24,5 @@ onBackdropPress?: () => void | ||
declare class Modal extends Component<ModalProps> {} | ||
class Modal extends Component<ModalProps> {} | ||
export default Modal | ||
} |
@@ -77,2 +77,6 @@ import React, { Component } from 'react'; | ||
componentWillUnmount() { | ||
DeviceEventEmitter.removeListener('didUpdateDimensions', this._handleDimensionsUpdate); | ||
} | ||
componentDidUpdate(prevProps, prevState) { | ||
@@ -79,0 +83,0 @@ // On modal open request, we slide the view up and fade in the backdrop |
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
14980
231