Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: UI in many screens was broken because of flex 1 #171

Merged
merged 3 commits into from
May 18, 2022

Conversation

pedroferreira1
Copy link
Member

@pedroferreira1 pedroferreira1 commented May 18, 2022

Summary

We've added a flex: 1 to the AmountInput component to fix a bug in the android app in the SendAmountInput screen when deleting all the text (the bug is described here facebook/react-native#30666).

This fix ended up breaking many screens in all devices (this can be seen in the videos added in this PR #168 or in the images below).

The fix was to remove the generic flex: 1 and add it as a custom style only for the SendAmountInput screen. This makes all the screens to work in both android and iOS.

Acceptance Criteria

  • All screens should have the UI working fine, including the TextInput in the SendAmountInput screen in the android.

Security Checklist

  • Make sure you do not include new dependencies in the project unless strictly necessary and do not include dev-dependencies as production ones. More dependencies increase the possibility of one of them being hijacked and affecting us.

Bug in iOS:

image

Bug in Android:

image

Correct screen after the fix:

image

@andreabadesso andreabadesso self-requested a review May 18, 2022 13:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants