mirror of
https://github.com/BlueWallet/BlueWallet.git
synced 2024-11-19 09:50:15 +01:00
ADD: KeyboardType prop
This commit is contained in:
parent
cad53912d7
commit
ca37d54814
@ -23,6 +23,7 @@ const AddressInput = ({
|
||||
editable = true,
|
||||
inputAccessoryViewID,
|
||||
onBlur = () => {},
|
||||
keyboardType = 'default',
|
||||
}) => {
|
||||
const { colors } = useTheme();
|
||||
const scanButtonRef = useRef();
|
||||
@ -62,7 +63,7 @@ const AddressInput = ({
|
||||
onBlur={onBlurEditing}
|
||||
autoCapitalize="none"
|
||||
autoCorrect={false}
|
||||
keyboardType="default"
|
||||
keyboardType={keyboardType}
|
||||
/>
|
||||
{editable ? (
|
||||
<TouchableOpacity
|
||||
@ -144,6 +145,7 @@ AddressInput.propTypes = {
|
||||
inputAccessoryViewID: PropTypes.string,
|
||||
onBarScannerDismissWithoutData: PropTypes.func,
|
||||
onBlur: PropTypes.func,
|
||||
keyboardType: PropTypes.string,
|
||||
};
|
||||
|
||||
export default AddressInput;
|
||||
|
@ -330,6 +330,7 @@ const ScanLndInvoice = () => {
|
||||
inputAccessoryViewID={BlueDismissKeyboardInputAccessory.InputAccessoryViewID}
|
||||
launchedBy={name}
|
||||
onBlur={onBlur}
|
||||
keyboardType="email-address"
|
||||
/>
|
||||
<View style={styles.description}>
|
||||
<Text numberOfLines={0} style={styles.descriptionText}>
|
||||
|
Loading…
Reference in New Issue
Block a user