mirror of https://github.com/tooot-app/app
Update HTML.tsx
This commit is contained in:
parent
242ecf76c0
commit
7c7c96bc42
|
@ -297,7 +297,7 @@ const ParseHTML: React.FC<Props> = ({
|
||||||
<Text
|
<Text
|
||||||
children={document.children.map(renderNode)}
|
children={document.children.map(renderNode)}
|
||||||
onTextLayout={({ nativeEvent }) => {
|
onTextLayout={({ nativeEvent }) => {
|
||||||
if (numberOfLines === 1 || nativeEvent.lines.length >= numberOfLines + 5) {
|
if (numberOfLines === 1 || nativeEvent.lines.length >= numberOfLines + 8) {
|
||||||
setTotalLines(nativeEvent.lines.length)
|
setTotalLines(nativeEvent.lines.length)
|
||||||
}
|
}
|
||||||
}}
|
}}
|
||||||
|
|
Loading…
Reference in New Issue