Skip to content

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

add support for auto fill

ammarahm-eda9a7c11185c0
diff --git a/apps/mobile/src/components/Input/index.js b/apps/mobile/src/components/Input/index.js
index feff42918..bf2e94155 100644
--- a/apps/mobile/src/components/Input/index.js
+++ b/apps/mobile/src/components/Input/index.js
@@ -39,7 +39,8 @@ const Input = ({
height = 50,
fontSize = SIZE.md,
returnKeyType,
- returnKeyLabel
+ returnKeyLabel,
+ autoCompleteType
}) => {
const [state] = useTracked();
const colors = state.colors;
@@ -171,6 +172,7 @@ const Input = ({
keyboardType={
validationType === 'email' ? 'email-address' : 'default'
}
+ importantForAutofill="auto"
returnKeyLabel={returnKeyLabel}
returnKeyType={returnKeyType}
keyboardAppearance={colors.night ? 'dark' : 'light'}
@@ -181,6 +183,7 @@ const Input = ({
secureTextEntry={secureTextEntry && secureEntry}
placeholder={placeholder}
placeholderTextColor={colors.icon}
+ autoCompleteType={autoCompleteType}
/>
<View
diff --git a/apps/mobile/src/components/LoginDialog/index.js b/apps/mobile/src/components/LoginDialog/index.js
index 3303ea8cc..fb6a0bc2b 100644
--- a/apps/mobile/src/components/LoginDialog/index.js
+++ b/apps/mobile/src/components/LoginDialog/index.js
@@ -531,6 +531,7 @@ const LoginDialog = () => {
}}
returnKeyLabel="Next"
returnKeyType="next"
+ autoCompleteType="email"
validationType="email"
autoCapitalize="none"
errorMessage="Email is invalid"
@@ -555,6 +556,7 @@ const LoginDialog = () => {
returnKeyLabel="Next"
returnKeyType="next"
secureTextEntry
+ autoCompleteType="password"
autoCapitalize="none"
placeholder="Current password"
onSubmit={() => {
@@ -578,6 +580,7 @@ const LoginDialog = () => {
marginBottom={0}
validationType={mode === MODES.signup ? 'password' : null}
secureTextEntry
+ autoCompleteType="password"
autoCapitalize="none"
placeholder="Password"
returnKeyLabel={mode === MODES.signup ? 'Next' : 'Login'}
diff --git a/apps/mobile/src/components/VaultDialog/index.js b/apps/mobile/src/components/VaultDialog/index.js
index f6858cb9a..29d736e68 100644
--- a/apps/mobile/src/components/VaultDialog/index.js
+++ b/apps/mobile/src/components/VaultDialog/index.js
@@ -602,6 +602,7 @@ export class VaultDialog extends Component {
? 0
: 10
}
+ autoCompleteType="password"
onSubmit={() => {
changePassword
? changePassInputRef.current?.focus()
@@ -655,6 +656,7 @@ export class VaultDialog extends Component {
onChangeText={(value) => {
this.password = value;
}}
+ autoCompleteType="password"
returnKeyLabel="Next"
returnKeyType="next"
secureTextEntry