1
0
mirror of https://github.com/tooot-app/app synced 2025-06-05 22:19:13 +02:00
This commit is contained in:
xmflsct
2022-11-12 17:52:50 +01:00
parent c8c3adf088
commit f2de56f602
7 changed files with 367 additions and 176 deletions

View File

@ -207,6 +207,10 @@ const ParseHTML = React.memo(
expandHint = t('HTML.defaultHint')
}
if (disableDetails) {
numberOfLines = 4
}
const renderNodeCallback = useCallback(
(node: any, index: any) =>
renderNode({
@ -247,7 +251,7 @@ const ParseHTML = React.memo(
return (
<View style={{ overflow: 'hidden' }}>
{typeof totalLines === 'number' || numberOfLines === 1 ? (
{(!disableDetails && typeof totalLines === 'number') || numberOfLines === 1 ? (
<Pressable
accessibilityLabel={t('HTML.accessibilityHint')}
onPress={() => {