Skip to content

Commit

Permalink
Merge pull request #34787 from bernhardoj/fix/33465-amount-is-partial…
Browse files Browse the repository at this point in the history
…ly-visible

Fix money request amount input is partially visible after going back from currency selection page
  • Loading branch information
marcochavezf authored Jan 26, 2024
2 parents feb516a + 72b4fb9 commit 8a55c77
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/components/TextInput/BaseTextInput/index.native.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -426,6 +426,9 @@ function BaseTextInput(
styles.visibilityHidden,
]}
onLayout={(e) => {
if (e.nativeEvent.layout.width === 0) {
return;
}
setTextInputWidth(e.nativeEvent.layout.width);
setTextInputHeight(e.nativeEvent.layout.height);
}}
Expand Down
3 changes: 3 additions & 0 deletions src/components/TextInput/BaseTextInput/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -447,6 +447,9 @@ 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;
Expand Down

0 comments on commit 8a55c77

Please sign in to comment.