import React from 'react'; import { Pressable } from 'react-native'; import Svg, { Path } from 'react-native-svg'; import app from '../../app.json'; const BadgeSelectItem = ({ children, style={}, checked=false, onPress, iconSize=28, showBorder=true, tintColor=colorAccent, borderColor="transparent" }) => ( {children} { checked && { app.isLumiWhitelabel ? <> : } } { (checked && app.isLumiWhitelabel) && } ); 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;