FIX: Check was not visible

This commit is contained in:
Marcos Rodriguez Velez 2024-07-13 14:46:09 -04:00 committed by Overtorment
parent a5de1a858a
commit c75ec0ac25
2 changed files with 12 additions and 4 deletions

View File

@ -153,7 +153,15 @@ const ListItem: React.FC<ListItemProps> = React.memo(
{chevron && <RNElementsListItem.Chevron iconStyle={{ transform: [{ scaleX: I18nManager.isRTL ? -1 : 1 }] }} />}
{rightIcon && <Avatar icon={rightIcon} />}
{switchProps && <Switch {...memoizedSwitchProps} accessibilityLabel={title} accessible accessibilityRole="switch" />}
{checkmark && <RNElementsListItem.CheckBox iconType="octaicon" checkedColor="#0070FF" checkedIcon="check" checked />}
{checkmark && (
<RNElementsListItem.CheckBox
iconRight
containerStyle={stylesHook.containerStyle}
iconType="octaicon"
checkedIcon="check"
checked
/>
)}
</>
)}
</>

View File

@ -86,9 +86,9 @@ const OutputList = ({
<RNElementsListItem bottomDivider onPress={onPress} containerStyle={selected ? oStyles.containerSelected : oStyles.container}>
<RNElementsListItem.CheckBox
checkedColor="#0070FF"
iconType="material-community"
checkedIcon="checkbox-marked"
uncheckedIcon="checkbox-blank-outline"
iconType="octaicon"
checkedIcon="check"
uncheckedColor="white"
checked={selected}
onPress={selected ? onDeSelect : onSelect}
/>