Fixed keyboard type issue on transfer page

This commit is contained in:
Mustafa Buyukcelebi 2019-05-03 14:32:14 +03:00
parent 14fdbc1dbd
commit 31e5bc6fe6

View File

@ -75,7 +75,7 @@ class TransferView extends Component {
}
};
_renderInput = (placeholder, state) => (
_renderInput = (placeholder, state, keyboardType) => (
<TextInput
style={styles.input}
onChangeText={text => this._setState(state, text)}
@ -83,7 +83,7 @@ class TransferView extends Component {
placeholder={placeholder}
placeholderTextColor="#c1c5c7"
autoCapitalize="none"
keyboardType="numeric"
keyboardType={keyboardType}
/>
);
@ -135,19 +135,20 @@ class TransferView extends Component {
rightComponent={() => this._renderInput(
intl.formatMessage({ id: 'transfer.to_placeholder' }),
'destination',
'default',
)
}
/>
<TransferFormItem
label={intl.formatMessage({ id: 'transfer.amount' })}
rightComponent={() => this._renderInput(intl.formatMessage({ id: 'transfer.amount' }), 'amount')}
rightComponent={() => this._renderInput(intl.formatMessage({ id: 'transfer.amount' }), 'amount', 'numeric')}
/>
<TransferFormItem
rightComponent={() => this._renderDescription(`${intl.formatMessage({ id: 'transfer.amount_desc' })} ${balance} ${fundType}`)}
/>
<TransferFormItem
label={intl.formatMessage({ id: 'transfer.memo' })}
rightComponent={() => this._renderInput(intl.formatMessage({ id: 'transfer.memo_placeholder' }), 'memo')
rightComponent={() => this._renderInput(intl.formatMessage({ id: 'transfer.memo_placeholder' }), 'memo', 'default')
}
/>
<TransferFormItem