import React from 'react'; import { Pressable, Text, View } from 'react-native'; import Svg, { Path } from 'react-native-svg'; const BadgeSelectItem = ({ children, style={}, checked=false, onPress, iconSize=28, showBorder=true, tintColor=colorAccent, borderColor="transparent" }) => ( {children} { checked && } ); const mergeStyle = (style, color, showBorder) => { const def = showBorder ? {borderColor: color, borderWidth: 1, borderRadius: 10, overflow: 'hidden'} : {overflow: 'hidden'} if (Array.isArray(style)) { let res = {} for (let s of style) { res = {...res, ...s}; } style = res; } var s = Object.assign(def, style); if (color) { s.borderColor = color; } return s; } export default BadgeSelectItem;