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, tintColor=colorAccent, borderColor="transparent" }) => ( {children} { checked && } ); const mergeStyle = (style, color) => { const def = {borderColor: color, borderWidth: 1, borderRadius: 10, overflow: 'hidden'} if (Array.isArray(style)) { let res = {} for (let s of style) { res = {...res, ...s}; } style = res; } var s = Object.assign(def, style); return s; } export default BadgeSelectItem;