aboutsummaryrefslogtreecommitdiff
path: root/src/screens/onboarding/PhoneVerification.tsx
diff options
context:
space:
mode:
authorGeorge Rusu <george@tagg.id>2021-05-05 17:54:14 -0700
committerGeorge Rusu <george@tagg.id>2021-05-05 17:54:14 -0700
commitb3241dcb2e39350ae5192b9ddd2b865c1c105062 (patch)
tree4a9ea42bdedad4ecffaea4a4abb3d3a6e889edec /src/screens/onboarding/PhoneVerification.tsx
parent0ae6415c3f8fec65bfb6996b773be6fe67a02d58 (diff)
consolidated old onboarding screens into one screen and route
Diffstat (limited to 'src/screens/onboarding/PhoneVerification.tsx')
-rw-r--r--src/screens/onboarding/PhoneVerification.tsx18
1 files changed, 8 insertions, 10 deletions
diff --git a/src/screens/onboarding/PhoneVerification.tsx b/src/screens/onboarding/PhoneVerification.tsx
index 6ec511b3..a242b44b 100644
--- a/src/screens/onboarding/PhoneVerification.tsx
+++ b/src/screens/onboarding/PhoneVerification.tsx
@@ -21,7 +21,7 @@ import {
ArrowButton,
Background,
LoadingIndicator,
- RegistrationWizard,
+ // RegistrationWizard,
SubmitButton,
} from '../../components';
import {codeRegex} from '../../constants';
@@ -67,9 +67,7 @@ const PhoneVerification: React.FC<PhoneVerificationProps> = ({
try {
const success = await trackPromise(verifyOtp(phone, value));
if (success) {
- navigation.navigate('OnboardingStepTwo', {
- ...route.params,
- });
+ navigation.navigate('RevampedOnboarding', {isPhoneVerified: true});
}
} catch (error) {
console.log(error);
@@ -82,7 +80,7 @@ const PhoneVerification: React.FC<PhoneVerificationProps> = ({
<View style={styles.footer}>
<ArrowButton
direction="backward"
- onPress={() => navigation.navigate('OnboardingStepOne')}
+ onPress={() => navigation.navigate('RevampedOnboarding', {isPhoneVerified: false})}
/>
</View>
),
@@ -94,7 +92,7 @@ const PhoneVerification: React.FC<PhoneVerificationProps> = ({
centered
style={styles.container}
gradientType={BackgroundGradientType.Light}>
- <RegistrationWizard style={styles.wizard} step="one" />
+ {/* <RegistrationWizard style={styles.wizard} step="one" /> */}
<KeyboardAvoidingView behavior="padding" style={styles.form}>
<Text style={styles.formHeader}>Enter 6 digit code</Text>
<Text style={styles.description}>
@@ -144,10 +142,10 @@ const styles = StyleSheet.create({
alignItems: 'center',
justifyContent: 'center',
},
- wizard: {
- position: 'absolute',
- top: SCREEN_HEIGHT * 0.1,
- },
+ // wizard: {
+ // position: 'absolute',
+ // top: SCREEN_HEIGHT * 0.1,
+ // },
form: {
top: '20%',
alignItems: 'center',