Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

react-native-popup-menu

Package Overview
Dependencies
Maintainers
1
Versions
63
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-native-popup-menu - npm Package Compare versions

Comparing version 0.15.7 to 0.15.8

.github/workflows/main.yml

4

package.json
{
"name": "react-native-popup-menu",
"version": "0.15.7",
"version": "0.15.8",
"description": "extensible popup/context menu for react native",

@@ -59,3 +59,3 @@ "main": "build/rnpm.js",

"chai": "^3.5.0",
"eslint": "^3.19.0",
"eslint": "^4.18.2",
"eslint-plugin-react": "^7.0.0",

@@ -62,0 +62,0 @@ "jasmine-reporters": "^2.1.1",

@@ -80,2 +80,7 @@ import React from 'react';

/** checks if component is class component */
export function isClassComponent(component) {
return component.prototype && !!component.prototype.render;
}
/**

@@ -82,0 +87,0 @@ * Higher order component to deprecate usage of component.

@@ -8,3 +8,3 @@ import React, { Component, createContext } from 'react';

import MenuPlaceholder from './MenuPlaceholder';
import { measure } from './helpers';
import { measure, isClassComponent } from './helpers';
import { debug } from './logger.js';

@@ -18,4 +18,2 @@ import MenuOutside from './renderers/MenuOutside';

const isFunctional = Component => !Component.prototype.render;
if (!React.forwardRef) {

@@ -312,3 +310,3 @@ throw new Error('This version of popup-menu requires RN 0.55+. Check our compatibility table.')

const optionsType = isOutside ? MenuOutside : renderer;
if (!isFunctional(optionsType)) {
if (isClassComponent(optionsType)) {
props.ref = this.onOptionsRef;

@@ -315,0 +313,0 @@ }

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc