Skip to content

Commit

Permalink
Accept any type for color prop (oblador#1244)
Browse files Browse the repository at this point in the history
  • Loading branch information
oblador authored Sep 10, 2020
1 parent e03b760 commit 1fe1cd5
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 7 deletions.
2 changes: 1 addition & 1 deletion lib/create-icon-set.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ export default function createIconSet(
allowFontScaling: PropTypes.bool,
name: IconNamePropType,
size: PropTypes.number,
color: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
color: PropTypes.any, // eslint-disable-line react/forbid-prop-types
children: PropTypes.node,
style: PropTypes.any, // eslint-disable-line react/forbid-prop-types
};
Expand Down
2 changes: 1 addition & 1 deletion lib/icon-button.js
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ export default function createIconButtonComponent(Icon) {
PropTypes.number,
]),
borderRadius: PropTypes.number,
color: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
color: PropTypes.any, // eslint-disable-line react/forbid-prop-types
size: PropTypes.number,
iconStyle: PropTypes.any, // eslint-disable-line react/forbid-prop-types
style: PropTypes.any, // eslint-disable-line react/forbid-prop-types
Expand Down
7 changes: 2 additions & 5 deletions lib/tab-bar-item-ios.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,8 @@ export default function createTabBarItemIOSComponent(
iconName: IconNamePropType.isRequired,
selectedIconName: IconNamePropType,
iconSize: PropTypes.number,
iconColor: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
selectedIconColor: PropTypes.oneOfType([
PropTypes.string,
PropTypes.number,
]),
iconColor: PropTypes.any, // eslint-disable-line react/forbid-prop-types
selectedIconColor: PropTypes.any, // eslint-disable-line react/forbid-prop-types
};

static defaultProps = {
Expand Down

0 comments on commit 1fe1cd5

Please sign in to comment.