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
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion src/components/AmountTextInput.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,6 @@ class AmountTextInput extends React.Component {

const style = StyleSheet.create({
input: {
flex: 1,
height: 38,
lineHeight: 38,
fontSize: 32,
Expand Down
3 changes: 3 additions & 0 deletions src/screens/SendAmountInput.js
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,9 @@ class SendAmountInput extends React.Component {
onAmountUpdate={this.onAmountChange}
value={this.state.amount}
allowOnlyInteger={this.isNFT()}
style={{ flex: 1 }} // we need this so the placeholder doesn't break in android
// devices after erasing the text
// https://github.com/facebook/react-native/issues/30666
/>
{IS_MULTI_TOKEN
? <TokenBox onPress={this.onTokenBoxPress} label={this.state.token.symbol} />
Expand Down