react-native-popup-menu
Advanced tools
Comparing version 0.9.0 to 0.9.1
{ | ||
"name": "react-native-popup-menu", | ||
"version": "0.9.0", | ||
"version": "0.9.1", | ||
"description": "extensible popup/context menu for react native", | ||
@@ -5,0 +5,0 @@ "main": "src/index.js", |
@@ -13,7 +13,9 @@ import React, { Component } from 'react'; | ||
componentDidMount() { | ||
Animated.timing(this.fadeAnim, { | ||
duration: OPEN_ANIM_DURATION, | ||
toValue: 1, | ||
}).start(); | ||
open() { | ||
return new Promise(resolve => { | ||
Animated.timing(this.fadeAnim, { | ||
duration: OPEN_ANIM_DURATION, | ||
toValue: 1, | ||
}).start(resolve); | ||
}); | ||
} | ||
@@ -20,0 +22,0 @@ |
@@ -229,2 +229,3 @@ import React, { Component } from 'react'; | ||
this._menuRegistry.updateLayoutInfo(menu.name, { triggerLayout }); | ||
this.backdropRef && this.backdropRef.open() | ||
this._notify(); | ||
@@ -231,0 +232,0 @@ }); |
@@ -18,3 +18,7 @@ import { iterator2array } from './helpers'; | ||
function subscribe(instance) { | ||
menus.set(instance.getName(), { name: instance.getName(), instance }); | ||
const name = instance.getName() | ||
if (menus.get(name)) { | ||
console.warn(`incorrect usage of popup menu - menu with name ${name} already exists`); | ||
} | ||
menus.set(name, { name, instance }); | ||
} | ||
@@ -21,0 +25,0 @@ |
@@ -27,2 +27,3 @@ import React from 'react'; | ||
easing: Easing.out(Easing.cubic), | ||
useNativeDriver: true | ||
}).start(); | ||
@@ -37,2 +38,3 @@ } | ||
easing: Easing.in(Easing.cubic), | ||
useNativeDriver: true | ||
}).start(resolve); | ||
@@ -39,0 +41,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
36316
997