Skip to content

Commit

Permalink
item prop added to image component
Browse files Browse the repository at this point in the history
  • Loading branch information
esdu-weptile committed Jan 28, 2024
1 parent b6dd0c7 commit 1345976
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/language-item/LanguageItem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ const LanguageItem: React.FC<ILanguageItemRequiredProps> = ({
]}
onPress={() => onSelect && onSelect(item)}
>
{imageComponent || (
{imageComponent ? React.cloneElement(imageComponent,{item}) : (
<Image source={item.imageSource} style={styles.imageStyle} />
)}
<Text style={_titleStyle(textColor)}>{item.title}</Text>
Expand Down

0 comments on commit 1345976

Please sign in to comment.