FIX: Made amount tap area larger

This commit is contained in:
Marcos Rodriguez Vélez 2019-01-03 21:06:02 -05:00
parent f5704a9832
commit f37363a9a5
2 changed files with 5 additions and 2 deletions

View file

@ -1127,6 +1127,7 @@ export class BlueBitcoinAmount extends Component {
const amount = typeof this.props.amount === 'number' ? this.props.amount.toString() : this.props.amount;
return (
<TouchableWithoutFeedback onPress={() => this.textInput.focus()}>
<View>
<View style={{ flexDirection: 'row', justifyContent: 'center', paddingTop: 16, paddingBottom: 16 }}>
<TextInput
@ -1134,6 +1135,7 @@ export class BlueBitcoinAmount extends Component {
onChangeText={text => this.props.onChangeText(text.replace(',', '.'))}
placeholder="0"
maxLength={10}
ref={(textInput) => this.textInput = textInput}
editable={!this.props.isLoading && !this.props.disabled}
value={amount}
placeholderTextColor={this.props.disabled ? '#99a0ab' : '#0f5cc0'}
@ -1162,6 +1164,7 @@ export class BlueBitcoinAmount extends Component {
</Text>
</View>
</View>
</TouchableWithoutFeedback>
);
}
}

View file

@ -17,7 +17,7 @@
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key>
<string>3.5.1</string>
<string>3.5.2</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleURLTypes</key>
@ -33,7 +33,7 @@
</dict>
</array>
<key>CFBundleVersion</key>
<string>201</string>
<string>204</string>
<key>ITSAppUsesNonExemptEncryption</key>
<false/>
<key>LSRequiresIPhoneOS</key>