react-native-popover-view
Advanced tools
Comparing version 5.0.1 to 5.0.2
@@ -302,4 +302,3 @@ var __extends = (this && this.__extends) || (function () { | ||
return (React.createElement(BasePopover, __assign({}, otherProps, { displayArea: this.getDisplayArea(), fromRect: fromRect, onOpenStart: function () { | ||
if (onOpenStart) | ||
onOpenStart(); | ||
onOpenStart === null || onOpenStart === void 0 ? void 0 : onOpenStart(); | ||
_this.debug('Setting up keyboard listeners'); | ||
@@ -311,4 +310,3 @@ _this.keyboardDidShowSubscription = Keyboard.addListener('keyboardDidShow', _this.keyboardDidShow); | ||
}, onCloseStart: function () { | ||
if (onCloseStart) | ||
onCloseStart(); | ||
onCloseStart === null || onCloseStart === void 0 ? void 0 : onCloseStart(); | ||
_this.debug('Tearing down keyboard listeners'); | ||
@@ -326,5 +324,5 @@ if (_this.keyboardDidShowSubscription !== null) { | ||
}, onCloseComplete: function () { | ||
if (onCloseComplete) | ||
onCloseComplete(); | ||
_this.setState({ showing: false }); | ||
_this.setState({ showing: false }, function () { | ||
onCloseComplete === null || onCloseComplete === void 0 ? void 0 : onCloseComplete(); | ||
}); | ||
}, skipMeasureContent: function () { return _this.waitForResizeToFinish; }, onDisplayAreaChanged: function (rect) { return _this.setDefaultDisplayArea(rect); } }))); | ||
@@ -331,0 +329,0 @@ }; |
@@ -40,11 +40,7 @@ var __extends = (this && this.__extends) || (function () { | ||
import PropTypes from 'prop-types'; | ||
import { ViewPropTypes } from 'deprecated-react-native-prop-types'; | ||
import { Rect, Placement, Mode, Size } from './Types'; | ||
import { DEFAULT_ARROW_SIZE, isWeb } from './Constants'; | ||
import { DEFAULT_ARROW_SIZE } from './Constants'; | ||
import JSModalPopover from './JSModalPopover'; | ||
import RNModalPopover from './RNModalPopover'; | ||
// React Native Web does not export ViewPropTypes, so this is a workaround | ||
var stylePropType = isWeb | ||
? PropTypes.object | ||
// eslint-disable-next-line | ||
: require('react-native').ViewPropTypes.style; | ||
var Popover = /** @class */ (function (_super) { | ||
@@ -161,3 +157,3 @@ __extends(Popover, _super); | ||
// style | ||
popoverStyle: stylePropType, | ||
popoverStyle: ViewPropTypes.style, | ||
popoverShift: PropTypes.shape({ | ||
@@ -167,3 +163,3 @@ x: PropTypes.number, | ||
}), | ||
backgroundStyle: stylePropType, | ||
backgroundStyle: ViewPropTypes.style, | ||
arrowSize: PropTypes.shape({ | ||
@@ -170,0 +166,0 @@ width: PropTypes.number, |
{ | ||
"name": "react-native-popover-view", | ||
"version": "5.0.1", | ||
"version": "5.0.2", | ||
"description": "A <Popover /> component for react-native iOS, Android, and Web", | ||
@@ -58,3 +58,2 @@ "main": "dist/index.js", | ||
"postinstall-postinstall": "^2.1.0", | ||
"prop-types": "^15.7.2", | ||
"react": "^17.0.2", | ||
@@ -67,3 +66,6 @@ "react-addons-test-utils": "^15.6.2", | ||
}, | ||
"dependencies": {} | ||
"dependencies": { | ||
"prop-types": "^15.8.1", | ||
"deprecated-react-native-prop-types": "^2.3.0" | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
20
53
270428
2
4268
+ Addedprop-types@^15.8.1
+ Added@react-native/normalize-color@2.1.0(transitive)
+ Addeddeprecated-react-native-prop-types@2.3.0(transitive)
+ Addedinvariant@2.2.4(transitive)
+ Addedjs-tokens@4.0.0(transitive)
+ Addedloose-envify@1.4.0(transitive)
+ Addedobject-assign@4.1.1(transitive)
+ Addedprop-types@15.8.1(transitive)
+ Addedreact-is@16.13.1(transitive)