mirror of
https://github.com/tooot-app/app
synced 2025-06-05 22:19:13 +02:00
Fix CW
This commit is contained in:
@ -236,7 +236,10 @@ const ParseHTML = React.memo(
|
||||
const [expanded, setExpanded] = useState(false)
|
||||
|
||||
const onTextLayout = useCallback(({ nativeEvent }) => {
|
||||
if (nativeEvent.lines.length >= numberOfLines + 5) {
|
||||
if (
|
||||
numberOfLines === 0 ||
|
||||
nativeEvent.lines.length >= numberOfLines + 5
|
||||
) {
|
||||
setExpandAllow(true)
|
||||
}
|
||||
}, [])
|
||||
|
Reference in New Issue
Block a user