Skip to content
This repository has been archived by the owner on Feb 4, 2021. It is now read-only.

Commit

Permalink
Update react-native-vector-icons to remove 0.25 warning
Browse files Browse the repository at this point in the history
Also adds support for allowFontScaling for IOS
  • Loading branch information
Matt Labrum committed May 16, 2016
1 parent 92ac893 commit a956c86
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
9 changes: 6 additions & 3 deletions lib/Icon.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,23 +9,26 @@ export default class Icon extends Component {
name: PropTypes.string.isRequired,
style: View.propTypes.style,
size: PropTypes.number,
color: PropTypes.string
color: PropTypes.string,
allowFontScaling: PropTypes.bool
};

static defaultProps = {
size: 30,
color: '#757575'
color: '#757575',
allowFontScaling: true
};

render() {
const { name, style, size, color } = this.props;
const { name, style, size, color, allowFontScaling} = this.props;

return (
<VectorIcon
name={name}
size={size}
color={getColor(color)}
style={style}
allowFontScaling={allowFontScaling}
/>
);
}
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"homepage": "https://github.com/react-native-material-design/react-native-material-design",
"dependencies": {
"react-native-material-design-styles": "https://github.com/react-native-material-design/react-native-material-design-styles.git",
"react-native-vector-icons": "^1.0.3"
"react-native-vector-icons": "^2.0.1"
},
"devDependencies": {
"babel-eslint": "^4.1.6",
Expand Down

0 comments on commit a956c86

Please sign in to comment.