@expo/vector-icons
Advanced tools
Comparing version 5.1.0 to 5.2.0
{ | ||
"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
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
4
3639015
2
7015
+ Addedlodash@^4.17.4