fix the MessageURl showing when there isn't hasContent or imageUrl

This commit is contained in:
Reinaldo Neto 2023-01-11 17:07:43 -03:00
parent ae0a218a7a
commit 2c1a412fce
1 changed files with 25 additions and 21 deletions

View File

@ -124,6 +124,7 @@ const Url = React.memo(
const hasContent = !!url.title || !!url.description;
if (hasContent || imageUrl) {
return (
<Touchable
onPress={onPress}
@ -145,6 +146,9 @@ const Url = React.memo(
</>
</Touchable>
);
}
return null;
},
(oldProps, newProps) => dequal(oldProps.url, newProps.url) && oldProps.theme === newProps.theme
);