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
|
<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
|
||||||
|
Loading…
Reference in New Issue
Block a user