How to use the react-native-elements.Icon.propTypes function in react-native-elements

To help you get started, we’ve selected a few react-native-elements examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github apiko-dev / Perfi / app / components / TextWithIcons.js View on Github external
marginRight: 5,
  },
});

const CustomIcon = ({ name, style, color }) => (
  
);

CustomIcon.propTypes = {
  name: PropTypes.string,
  style: Icon.propTypes.iconStyle,
  color: PropTypes.any,
};

const TextWithIcons = (props) => {
  const {
    leftIcon,
    leftIconStyle,
    rightIcon,
    rightIconStyle,
    text,
    textStyle,
    color = colors.primaryText,
    containerStyle,
  } = props;

  return (