Skip to content

Commit

Permalink
Bump dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
oblador committed Nov 24, 2019
1 parent c1638d4 commit 6c3bc80
Show file tree
Hide file tree
Showing 5 changed files with 1,101 additions and 994 deletions.
9 changes: 6 additions & 3 deletions FONTAWESOME5.md
Expand Up @@ -70,9 +70,12 @@ Use this to select which style the generated image should have:
```javascript
import FontAwesome5, { FA5Style } from 'react-native-vector-icons/FontAwesome5';

FontAwesome5.getImageSource('comments', 30, '#000', FA5Style.solid).then(
source => this.setState({ image: source })
);
FontAwesome5.getImageSource(
'comments',
30,
'#000',
FA5Style.solid
).then(source => this.setState({ image: source }));
```

Not passing a style will result in Regular style.
Expand Down
12 changes: 3 additions & 9 deletions index.js
@@ -1,10 +1,4 @@
export { default as createIconSet } from './lib/create-icon-set';
export {
default as createMultiStyleIconSet,
} from './lib/create-multi-style-icon-set';
export {
default as createIconSetFromFontello,
} from './lib/create-icon-set-from-fontello';
export {
default as createIconSetFromIcoMoon,
} from './lib/create-icon-set-from-icomoon';
export { default as createMultiStyleIconSet } from './lib/create-multi-style-icon-set';
export { default as createIconSetFromFontello } from './lib/create-icon-set-from-fontello';
export { default as createIconSetFromIcoMoon } from './lib/create-icon-set-from-icomoon';
4 changes: 2 additions & 2 deletions lib/create-icon-set.js
Expand Up @@ -40,6 +40,8 @@ export default function createIconSet(
const IconNamePropType = PropTypes.oneOf(Object.keys(glyphMap));

class Icon extends PureComponent {
root = null;

static propTypes = {
allowFontScaling: PropTypes.bool,
name: IconNamePropType,
Expand All @@ -54,8 +56,6 @@ export default function createIconSet(
allowFontScaling: false,
};

root = null;

setNativeProps(nativeProps) {
if (this.root) {
this.root.setNativeProps(nativeProps);
Expand Down
12 changes: 6 additions & 6 deletions package.json
Expand Up @@ -67,12 +67,12 @@
},
"dependencies": {
"lodash": "^4.17.15",
"prop-types": "^15.6.2",
"yargs": "^13.2.2"
"prop-types": "^15.7.2",
"yargs": "^15.0.2"
},
"devDependencies": {
"@babel/cli": "^7.5.5",
"@babel/core": "^7.5.5",
"@babel/cli": "^7.7.4",
"@babel/core": "^7.7.4",
"@mdi/font": "^4.0.96",
"babel-eslint": "^10.0.3",
"eslint": "^6.2.1",
Expand All @@ -89,8 +89,8 @@
"fontisto": "^3.0.4",
"ionicons": "^4.0.0",
"material-design-icons": "^3.0.1",
"metro-react-native-babel-preset": "^0.56.0",
"metro-react-native-babel-preset": "^0.57.0",
"octicons": "^8.4.1",
"prettier": "^1.18.2"
"prettier": "^1.19.1"
}
}

0 comments on commit 6c3bc80

Please sign in to comment.