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

@expo/vector-icons

Package Overview
Dependencies
Maintainers
12
Versions
55
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@expo/vector-icons - npm Package Compare versions

Comparing version 5.1.0 to 5.2.0

3

package.json
{
"name": "@expo/vector-icons",
"version": "5.1.0",
"version": "5.2.0",
"description": "Built-in support for 10 popular icon fonts and the tooling to create your own Icon components from your font and glyph map. This is a wrapper around react-native-vector-icons to make it compatible with Expo.",

@@ -21,2 +21,3 @@ "main": "index.js",

"dependencies": {
"lodash": "^4.17.4",
"react-native-vector-icons": "4.1.1"

@@ -23,0 +24,0 @@ },

@@ -1,4 +0,2 @@

import isString from 'lodash/isString';
import omit from 'lodash/omit';
import pick from 'lodash/pick';
import { isString, omit, pick } from 'lodash';
import React, { Component } from 'react';

@@ -5,0 +3,0 @@ import PropTypes from 'prop-types';

@@ -1,3 +0,2 @@

import isEqual from 'lodash/isEqual';
import pick from 'lodash/pick';
import { isEqual, pick } from 'lodash';
import React, { Component } from 'react';

@@ -4,0 +3,0 @@ import PropTypes from 'prop-types';

@@ -1,3 +0,2 @@

import isEqual from 'lodash/isEqual';
import pick from 'lodash/pick';
import { isEqual, pick } from 'lodash';
import React, { Component } from 'react';

@@ -4,0 +3,0 @@ import PropTypes from 'prop-types';

@@ -32,5 +32,3 @@ import React, { Component } from 'react';

<div className="Header-Content">
<h1 className="Header-Title">
@expo/vector-icons directory
</h1>
<h1 className="Header-Title">@expo/vector-icons directory</h1>
</div>

@@ -49,3 +47,3 @@ </div>

<input
ref={input => this._input = input}
ref={input => (this._input = input)}
placeholder="Search for an icon"

@@ -96,3 +94,3 @@ type="text"

<div>
{Object.keys(IconFamilies[familyName]).map(iconName => (
{Object.keys(IconFamilies[familyName]).map(iconName =>
<Icon

@@ -103,3 +101,3 @@ key={iconName + familyName}

/>
))}
)}
</div>

@@ -110,6 +108,9 @@ );

_onSubmit(text) {
const lcText = text.toLowerCase();
let matches = [];
_.forEach(IconFamilies, (icons, family) => {
let names = Object.keys(icons);
let results = names.filter(name => name.indexOf(text) >= 0);
let results = names.filter(
name => name.toLowerCase().indexOf(lcText) >= 0
);
if (results.length) {

@@ -127,3 +128,5 @@ matches = [...matches, { family, names: results }];

<div className="Result-Row" key={family}>
<h2 className="Result-Title">{family}</h2>
<h2 className="Result-Title">
{family}
</h2>

@@ -130,0 +133,0 @@ <div className="Result-List">

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