Skip to content

Commit

Permalink
Merge pull request #35297 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 29, 2024
2 parents 19f542a + 791bf48 commit 2700886
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 && e.nativeEvent.layout.height === 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 && e.nativeEvent.layout.height === 0) {
return;
}
let additionalWidth = 0;
if (Browser.isMobileSafari() || Browser.isSafari() || Browser.isMobileChrome()) {
additionalWidth = 2;
Expand Down

0 comments on commit 2700886

Please sign in to comment.