import React,{Component} from "react" import {Text,View} from "react-native" import Icon from "react-native-vector-icons/MaterialIcons"; export default class IconWithBadge extends React.Component { render() { const { name, badgeCount, color, size } = this.props; return ( { badgeCount > 0 && ( {badgeCount} )} ); } }