From ac5e888fe30891d629386575037269563089783f Mon Sep 17 00:00:00 2001 From: Victorio Molina Date: Tue, 21 Jun 2022 04:33:44 +0200 Subject: [PATCH 1/2] fix: supporting empty labels. --- src/components/TextInput/TextInputFlat.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/TextInput/TextInputFlat.tsx b/src/components/TextInput/TextInputFlat.tsx index 9ed7be9290..785aed6beb 100644 --- a/src/components/TextInput/TextInputFlat.tsx +++ b/src/components/TextInput/TextInputFlat.tsx @@ -308,7 +308,7 @@ const TextInputFlat = ({ }, ]} > - {!isAndroid && multiline && label && ( + {!isAndroid && multiline && Boolean(label) && ( // Workaround for: https://github.com/callstack/react-native-paper/issues/2799 // Patch for a multiline TextInput with fixed height, which allow to avoid covering input label with its value. Date: Sat, 25 Jun 2022 12:56:23 +0200 Subject: [PATCH 2/2] Update src/components/TextInput/TextInputFlat.tsx Co-authored-by: Luke Walczak --- src/components/TextInput/TextInputFlat.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/TextInput/TextInputFlat.tsx b/src/components/TextInput/TextInputFlat.tsx index 785aed6beb..e28eb47f34 100644 --- a/src/components/TextInput/TextInputFlat.tsx +++ b/src/components/TextInput/TextInputFlat.tsx @@ -308,7 +308,7 @@ const TextInputFlat = ({ }, ]} > - {!isAndroid && multiline && Boolean(label) && ( + {!isAndroid && multiline && !!label && ( // Workaround for: https://github.com/callstack/react-native-paper/issues/2799 // Patch for a multiline TextInput with fixed height, which allow to avoid covering input label with its value.