Skip to content

A fully open source & end-to-end encrypted note taking alternative to Evernote.

use keyboardType as email-address for email input

ammarahm-ed90dde769aee5
diff --git a/apps/mobile/src/components/Input/index.js b/apps/mobile/src/components/Input/index.js
index d0972027b..b658e8d24 100644
--- a/apps/mobile/src/components/Input/index.js
+++ b/apps/mobile/src/components/Input/index.js
@@ -47,10 +47,10 @@ const Input = ({
const [showError, setShowError] = useState(false);
const [errorList, setErrorList] = useState({
SHORT_PASS: true,
- // NO_ABC: true,
- // NO_CAPS_ABC: true,
- // NO_NUM: true,
- // SPECIAL: true,
+ // NO_ABC: true,
+ // NO_CAPS_ABC: true,
+ // NO_NUM: true,
+ // SPECIAL: true,
});
const color = error
@@ -166,6 +166,9 @@ const Input = ({
autoCapitalize={autoCapitalize}
onChangeText={onChange}
onBlur={onBlur}
+ keyboardType={
+ validationType === 'email' ? 'email-address' : 'default'
+ }
onFocus={onFocus}
onSubmitEditing={onSubmit}
blurOnSubmit={blurOnSubmit}