{touched.username && errors.username && ( <Text style={styles.errorMessage}>{errors.username}</Text> )} <TextInput style={[ styles.textInput, touched.username && errors.username && { borderColor: colors.red }, { color: colors.text } ]} placeholder="Username" placeholderTextColor={colors.text} value={values.username} autoCorrect={false} onChangeText={handleChange('username')}
register({ variables: { username: values.username.toLowerCase().trim(), email: values.email.toLowerCase().trim(), password: values.password id="username" name="username" value={values.username} label="username" onChange={handleChange} /> <span> {(touched.username && errors.username ? errors.username : '') || (error && error.message.includes('name = username') disabled={ !values.email || !values.username || !values.password || isSubmitting || !!(errors.email && touched.email) || !!(errors.username && touched.username) || !!(errors.password && touched.password)
{touched.username && errors.username && ( <Text style={styles.errorMessage}>{errors.username}</Text> )} <TextInput style={[ styles.textInput, touched.username && errors.username && { borderColor: colors.red }, { color: colors.text } ]} placeholder="Username" placeholderTextColor={colors.text} value={values.username} onChangeText={handleChange('username')} onBlur={handleBlur('username')}