Skip to content

Commit

Permalink
Merge pull request #22 from rsml/Fix-21
Browse files Browse the repository at this point in the history
Fix #21: Allow PropTypes.number as the type of the style prop to fix warning on react-native-web
  • Loading branch information
stowball authored Mar 16, 2021
2 parents 9b2ff3f + e7c67e1 commit fd765d0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/SvgIcon.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ SvgIcon.propTypes = {
name: PropTypes.string.isRequired,
stroke: PropTypes.string,
strokeWidth: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
style: PropTypes.oneOfType([PropTypes.array, PropTypes.object]),
style: PropTypes.oneOfType([PropTypes.array, PropTypes.object, PropTypes.number]),
svgs: PropTypes.object.isRequired,
width: PropTypes.oneOfType([PropTypes.number, PropTypes.string]).isRequired,
viewBox: PropTypes.string
Expand Down

0 comments on commit fd765d0

Please sign in to comment.