Socket
Socket
Sign inDemoInstall

react-native-popup-menu

Package Overview
Dependencies
0
Maintainers
1
Versions
63
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.9.0 to 0.9.1

2

package.json
{
"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 @@ });

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc