From 100be96fca6257fa7b55c44fb83163bea67ee229 Mon Sep 17 00:00:00 2001 From: Andrej Shadura Date: Tue, 11 Jan 2022 14:08:42 +0100 Subject: [PATCH] Fix autocorrect/autofill in server settings (#59) (#60) Prevent autocorrection on URLs, disable autoCorrect and autoCapitalise and set importantForAutofill. --- app/screens/ServerView.tsx | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/app/screens/ServerView.tsx b/app/screens/ServerView.tsx index f8c4e3f..14b9a01 100644 --- a/app/screens/ServerView.tsx +++ b/app/screens/ServerView.tsx @@ -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}