Socket
Socket
Sign inDemoInstall

react-native-vector-icons

Package Overview
Dependencies
2
Maintainers
1
Versions
85
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 2.0.0 to 2.0.1

4

lib/create-icon-set-from-fontello.js
import createIconSet from './create-icon-set';
function createIconSetFromFontello(config, fontFamily, fontFile) {
export default function createIconSetFromFontello(config, fontFamily, fontFile) {
let glyphMap = {};

@@ -15,3 +15,1 @@ config.glyphs.forEach(glyph => {

}
module.exports = createIconSetFromFontello;
import createIconSet from './create-icon-set';
function createIconSetFromIcoMoon(config, fontFamily, fontFile) {
export default function createIconSetFromIcoMoon(config, fontFamily, fontFile) {
let glyphMap = {};

@@ -15,3 +15,1 @@ config.icons.forEach(icon => {

}
module.exports = createIconSetFromIcoMoon;

@@ -23,3 +23,3 @@ import isEqual from 'lodash/isEqual';

iconSize: 30,
}
};

@@ -26,0 +26,0 @@ updateIconSources(props) {

import isEqual from 'lodash/isEqual';
import omit from 'lodash/omit';
import pick from 'lodash/pick';

@@ -33,3 +32,3 @@

iconSize: 24,
}
};

@@ -64,11 +63,11 @@ updateIconSources(props) {

if (!isEqual(pick(nextProps, keys), pick(this.props, keys))) {
let stateToEvict = [];
let stateToEvict = {};
if (!nextProps.navIconName) {
stateToEvict.push('navIcon');
stateToEvict.navIcon = undefined;
}
if (!nextProps.iconName) {
stateToEvict.push('icon');
stateToEvict.icon = undefined;
}
if (this.state && stateToEvict.length) {
this.replaceState(omit(this.state, stateToEvict), () => this.updateIconSources(nextProps));
if (this.state && Object.keys(stateToEvict).length) {
this.setState(stateToEvict, () => this.updateIconSources(nextProps));
} else {

@@ -75,0 +74,0 @@ this.updateIconSources(nextProps);

{
"name": "react-native-vector-icons",
"version": "2.0.0",
"version": "2.0.1",
"description": "Customizable Icons for React Native with support for NavBar/TabBar, image source and full styling. Choose from 3000+ bundled icons or use your own.",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -358,6 +358,6 @@ ![Vector Icons for React Native](https://cloud.githubusercontent.com/assets/378279/12009887/33f4ae1c-ac8d-11e5-8666-7a87458753ee.png)

actions={[
{ title: 'Settings', iconName: 'gear-a', iconSize: 30, show: 'always' },
{ title: 'Follow me on Twitter', iconName: 'social-twitter', iconColor: "#4099FF", show: 'ifRoom' },
{ title: 'Settings', iconName: 'md-settings', iconSize: 30, show: 'always' },
{ title: 'Follow me on Twitter', iconName: 'logo-twitter', iconColor: "#4099FF", show: 'ifRoom' },
]}
overflowIconName="more"
overflowIconName="md-more"
/>

@@ -434,2 +434,6 @@ );

#### Android build fails on Windows for no good reason
Both npm and android file hierarchies tend to get very deep and even worse when you combine them. Since Windows file system has a max length, long file name addresses will result in numerous errors including `Execution failed for task ':react-native-vector-icons:processReleaseResources'`. So try to keep the path to your project folder as short as possible.
## License

@@ -436,0 +440,0 @@

SocketSocket SOC 2 Logo

Product

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

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc