Fix autocorrect/autofill in server settings (#59) (#60)

Prevent autocorrection on URLs, disable autoCorrect and
autoCapitalise and set importantForAutofill.
This commit is contained in:
Andrej Shadura 2022-01-11 14:08:42 +01:00 committed by GitHub
parent c1e26d23cf
commit 100be96fca
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -194,6 +194,8 @@ const ServerView: React.FC<{
selectionColor={colors.text.secondary}
textContentType="URL"
placeholder="http://demo.navidrome.org"
autoCorrect="false"
autoCapitalize="none"
value={address}
onChangeText={setAddress}
onBlur={formatAddress}
@ -205,6 +207,8 @@ const ServerView: React.FC<{
selectionColor={colors.text.secondary}
textContentType="username"
autoCompleteType="username"
importantForAutofill="yes"
autoCapitalize="none"
placeholder="demo"
value={username}
onChangeText={setUsername}
@ -216,6 +220,8 @@ const ServerView: React.FC<{
selectionColor={colors.text.secondary}
textContentType="password"
autoCompleteType="password"
autoCapitalize="none"
importantForAutofill="yes"
secureTextEntry={true}
placeholder="demo"
value={password}