Skip to content

Commit

Permalink
Remove ViewPropStyle to support newer RN versions
Browse files Browse the repository at this point in the history
  • Loading branch information
denissb committed Mar 10, 2020
1 parent ab4b593 commit b500d24
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/SvgIcon.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React from 'react';
import PropTypes from 'prop-types';
import { Platform, ViewPropTypes } from 'react-native';
import { Platform } from 'react-native';
import Svg from 'react-native-svg';

const SvgIcon = (props) => {
Expand Down 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([ViewPropTypes.style, PropTypes.array, PropTypes.object]),
style: PropTypes.oneOfType([PropTypes.array, PropTypes.object]),
svgs: PropTypes.object.isRequired,
width: PropTypes.oneOfType([PropTypes.number, PropTypes.string]).isRequired,
viewBox: PropTypes.string
Expand Down

0 comments on commit b500d24

Please sign in to comment.