diff options
author | George Rusu <george@tagg.id> | 2021-05-08 00:07:37 -0700 |
---|---|---|
committer | George Rusu <george@tagg.id> | 2021-05-08 00:07:37 -0700 |
commit | 962273b9970175508023a9a6c834030d822b5f03 (patch) | |
tree | f5be857c7b1266532da5446da34826710e404697 /src | |
parent | 525678fde244e8e9d3ea373ee8fb93c26ea92be8 (diff) |
updated header text on password step
Diffstat (limited to 'src')
-rw-r--r-- | src/screens/onboarding/BasicInfoOnboarding.tsx | 98 |
1 files changed, 46 insertions, 52 deletions
diff --git a/src/screens/onboarding/BasicInfoOnboarding.tsx b/src/screens/onboarding/BasicInfoOnboarding.tsx index 3fa33f63..1e3522bd 100644 --- a/src/screens/onboarding/BasicInfoOnboarding.tsx +++ b/src/screens/onboarding/BasicInfoOnboarding.tsx @@ -443,58 +443,52 @@ const BasicInfoOnboarding: React.FC<BasicInfoOnboardingProps> = ({route}) => { </Animated.View> </> ) : ( - <Animated.View - style={[styles.formContainer, {opacity: fadeValue}]}> - <TaggInput - accessibilityHint="Enter a password." - accessibilityLabel="Password input field." - placeholder="Password" - autoCompleteType="password" - textContentType="oneTimeCode" - returnKeyType="done" - selectionColor="white" - onChangeText={handlePasswordUpdate} - onSubmitEditing={advanceRegistration} - blurOnSubmit={false} - autoFocus={true} - secureTextEntry={!passVisibility} - valid={valid} - externalStyles={{ - warning: styles.passWarning, - }} - invalidWarning={ - 'Password must be at least 8 characters & contain at least one of a-z, A-Z, 0-9, and a special character.' - } - attemptedSubmit={attemptedSubmit} - style={ - attemptedSubmit && !valid - ? [styles.input, styles.invalidColor] - : styles.input - } - /> - <TouchableOpacity - accessibilityLabel="Show password button" - accessibilityHint="Select this if you want to display your tagg password" - style={styles.showPassContainer} - onPress={() => setPassVisibility(!passVisibility)}> - <Text style={styles.showPass}>Show Password</Text> - </TouchableOpacity> - <LoadingIndicator /> - <TermsConditions - style={styles.tc} - accepted={tcAccepted} - onChange={setTCAccepted} - /> - <Animated.View style={{opacity: fadeButtonValue}}> - <TaggSquareButton - onPress={advanceRegistration} - title={'Next'} - buttonStyle={'normal'} - buttonColor={'white'} - labelColor={'blue'} - /> - </Animated.View> - </Animated.View> + <><Text style={styles.formHeader}>SIGN UP</Text> + <Animated.View + style={[styles.formContainer, { opacity: fadeValue }]}> + <TaggInput + accessibilityHint="Enter a password." + accessibilityLabel="Password input field." + placeholder="Password" + autoCompleteType="password" + textContentType="oneTimeCode" + returnKeyType="done" + selectionColor="white" + onChangeText={handlePasswordUpdate} + onSubmitEditing={advanceRegistration} + blurOnSubmit={false} + autoFocus={true} + secureTextEntry={!passVisibility} + valid={valid} + externalStyles={{ + warning: styles.passWarning, + }} + invalidWarning={'Password must be at least 8 characters & contain at least one of a-z, A-Z, 0-9, and a special character.'} + attemptedSubmit={attemptedSubmit} + style={attemptedSubmit && !valid + ? [styles.input, styles.invalidColor] + : styles.input} /> + <TouchableOpacity + accessibilityLabel="Show password button" + accessibilityHint="Select this if you want to display your tagg password" + style={styles.showPassContainer} + onPress={() => setPassVisibility(!passVisibility)}> + <Text style={styles.showPass}>Show Password</Text> + </TouchableOpacity> + <LoadingIndicator /> + <TermsConditions + style={styles.tc} + accepted={tcAccepted} + onChange={setTCAccepted} /> + <Animated.View style={{ opacity: fadeButtonValue }}> + <TaggSquareButton + onPress={advanceRegistration} + title={'Next'} + buttonStyle={'normal'} + buttonColor={'white'} + labelColor={'blue'} /> + </Animated.View> + </Animated.View></> )} </> )} |