diff --git a/lib/create-icon-set.js b/lib/create-icon-set.js index 9700c68..b70e366 100644 --- a/lib/create-icon-set.js +++ b/lib/create-icon-set.js @@ -36,10 +36,11 @@ export default function createIconSet(glyphMap, fontFamily, fontFile) { class Icon extends Component { static propTypes = { - ...Text.propTypes, name: IconNamePropType.isRequired, size: PropTypes.number, color: PropTypes.string, + children: PropTypes.node, + style: PropTypes.any, // eslint-disable-line react/forbid-prop-types }; static defaultProps = { diff --git a/lib/icon-button.js b/lib/icon-button.js index c06ed07..67464af 100644 --- a/lib/icon-button.js +++ b/lib/icon-button.js @@ -39,11 +39,13 @@ const IOS7_BLUE = '#007AFF'; export default function createIconButtonComponent(Icon) { return class IconButton extends Component { static propTypes = { - ...View.propTypes, backgroundColor: PropTypes.string, borderRadius: PropTypes.number, color: PropTypes.string, size: PropTypes.number, + iconStyle: PropTypes.any, // eslint-disable-line react/forbid-prop-types + style: PropTypes.any, // eslint-disable-line react/forbid-prop-types + children: PropTypes.node, }; static defaultProps = {