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