ADD: KeyboardType prop

This commit is contained in:
Marcos Rodriguez Vélez 2021-10-15 10:52:25 -04:00
parent cad53912d7
commit ca37d54814
No known key found for this signature in database
GPG Key ID: 0D64671698D11C5C
2 changed files with 4 additions and 1 deletions

View File

@ -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;

View File

@ -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}>