From 453827b0ab47ed1ca053eaf0292e59c3bedf32b1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marco=20Ch=C3=A1vez?= Date: Fri, 26 Jan 2024 20:12:04 -0600 Subject: [PATCH] Revert "Fix money request amount input is partially visible after going back from currency selection page" --- src/components/TextInput/BaseTextInput/index.native.tsx | 3 --- src/components/TextInput/BaseTextInput/index.tsx | 3 --- 2 files changed, 6 deletions(-) diff --git a/src/components/TextInput/BaseTextInput/index.native.tsx b/src/components/TextInput/BaseTextInput/index.native.tsx index afd796d8c878..c26ab8700bc0 100644 --- a/src/components/TextInput/BaseTextInput/index.native.tsx +++ b/src/components/TextInput/BaseTextInput/index.native.tsx @@ -426,9 +426,6 @@ function BaseTextInput( styles.visibilityHidden, ]} onLayout={(e) => { - if (e.nativeEvent.layout.width === 0) { - return; - } setTextInputWidth(e.nativeEvent.layout.width); setTextInputHeight(e.nativeEvent.layout.height); }} diff --git a/src/components/TextInput/BaseTextInput/index.tsx b/src/components/TextInput/BaseTextInput/index.tsx index 4fa47eff4128..49b203b37567 100644 --- a/src/components/TextInput/BaseTextInput/index.tsx +++ b/src/components/TextInput/BaseTextInput/index.tsx @@ -447,9 +447,6 @@ function BaseTextInput( styles.visibilityHidden, ]} onLayout={(e) => { - if (e.nativeEvent.layout.width === 0) { - return; - } let additionalWidth = 0; if (Browser.isMobileSafari() || Browser.isSafari() || Browser.isMobileChrome()) { additionalWidth = 2;