From d0234784eb6ab06e08b38b72b932cf68d70ace9a Mon Sep 17 00:00:00 2001 From: Paul Frazee Date: Mon, 14 Nov 2022 14:01:01 -0600 Subject: [PATCH] Turn off autocorrect and auto-lowercase login handle --- src/view/screens/Login.tsx | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/view/screens/Login.tsx b/src/view/screens/Login.tsx index e386c854..02365288 100644 --- a/src/view/screens/Login.tsx +++ b/src/view/screens/Login.tsx @@ -168,8 +168,9 @@ const Signin = ({onPressBack}: {onPressBack: () => void}) => { placeholderTextColor={colors.blue0} autoCapitalize="none" autoFocus + autoCorrect={false} value={handle} - onChangeText={setHandle} + onChangeText={str => setHandle((str || '').toLowerCase())} editable={!isProcessing} /> @@ -180,6 +181,7 @@ const Signin = ({onPressBack}: {onPressBack: () => void}) => { placeholder="Password" placeholderTextColor={colors.blue0} autoCapitalize="none" + autoCorrect={false} secureTextEntry value={password} onChangeText={setPassword} @@ -328,6 +330,7 @@ const CreateAccount = ({onPressBack}: {onPressBack: () => void}) => { placeholder="Invite code" placeholderTextColor={colors.blue0} autoCapitalize="none" + autoCorrect={false} autoFocus value={inviteCode} onChangeText={setInviteCode} @@ -345,6 +348,7 @@ const CreateAccount = ({onPressBack}: {onPressBack: () => void}) => { placeholder="Email address" placeholderTextColor={colors.blue0} autoCapitalize="none" + autoCorrect={false} value={email} onChangeText={setEmail} editable={!isProcessing} @@ -357,6 +361,7 @@ const CreateAccount = ({onPressBack}: {onPressBack: () => void}) => { placeholder="Choose your password" placeholderTextColor={colors.blue0} autoCapitalize="none" + autoCorrect={false} secureTextEntry value={password} onChangeText={setPassword}