mirror of
https://github.com/ecency/ecency-mobile.git
synced 2024-12-22 12:51:42 +03:00
Fixed keyboard type issue on transfer page
This commit is contained in:
parent
14fdbc1dbd
commit
31e5bc6fe6
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user