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