Turn off autocorrect and auto-lowercase login handle

zio/stable
Paul Frazee 2022-11-14 14:01:01 -06:00
parent 2271112317
commit d0234784eb
1 changed files with 6 additions and 1 deletions

View File

@ -168,8 +168,9 @@ const Signin = ({onPressBack}: {onPressBack: () => void}) => {
placeholderTextColor={colors.blue0} placeholderTextColor={colors.blue0}
autoCapitalize="none" autoCapitalize="none"
autoFocus autoFocus
autoCorrect={false}
value={handle} value={handle}
onChangeText={setHandle} onChangeText={str => setHandle((str || '').toLowerCase())}
editable={!isProcessing} editable={!isProcessing}
/> />
</View> </View>
@ -180,6 +181,7 @@ const Signin = ({onPressBack}: {onPressBack: () => void}) => {
placeholder="Password" placeholder="Password"
placeholderTextColor={colors.blue0} placeholderTextColor={colors.blue0}
autoCapitalize="none" autoCapitalize="none"
autoCorrect={false}
secureTextEntry secureTextEntry
value={password} value={password}
onChangeText={setPassword} onChangeText={setPassword}
@ -328,6 +330,7 @@ const CreateAccount = ({onPressBack}: {onPressBack: () => void}) => {
placeholder="Invite code" placeholder="Invite code"
placeholderTextColor={colors.blue0} placeholderTextColor={colors.blue0}
autoCapitalize="none" autoCapitalize="none"
autoCorrect={false}
autoFocus autoFocus
value={inviteCode} value={inviteCode}
onChangeText={setInviteCode} onChangeText={setInviteCode}
@ -345,6 +348,7 @@ const CreateAccount = ({onPressBack}: {onPressBack: () => void}) => {
placeholder="Email address" placeholder="Email address"
placeholderTextColor={colors.blue0} placeholderTextColor={colors.blue0}
autoCapitalize="none" autoCapitalize="none"
autoCorrect={false}
value={email} value={email}
onChangeText={setEmail} onChangeText={setEmail}
editable={!isProcessing} editable={!isProcessing}
@ -357,6 +361,7 @@ const CreateAccount = ({onPressBack}: {onPressBack: () => void}) => {
placeholder="Choose your password" placeholder="Choose your password"
placeholderTextColor={colors.blue0} placeholderTextColor={colors.blue0}
autoCapitalize="none" autoCapitalize="none"
autoCorrect={false}
secureTextEntry secureTextEntry
value={password} value={password}
onChangeText={setPassword} onChangeText={setPassword}