From 8a64f53326bbadb356e974c670550d56e3382d17 Mon Sep 17 00:00:00 2001 From: Lohen Date: Sat, 28 Jan 2023 00:21:45 +0530 Subject: [PATCH] fix: handle empty text --- src/component/truncated_text_view.tsx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/component/truncated_text_view.tsx b/src/component/truncated_text_view.tsx index f9a8f47..ab2abf6 100644 --- a/src/component/truncated_text_view.tsx +++ b/src/component/truncated_text_view.tsx @@ -113,6 +113,9 @@ export const TruncatedTextView = (props: Props) => { }); }, [_shouldShowTailViewAndroid, _shouldShowTailViewIOS, numberOfLines]); + // this will hide the text view if the text is empty + if (!fullText) return ; + return (