aboutsummaryrefslogtreecommitdiff
path: root/src/components/onboarding
diff options
context:
space:
mode:
authorAshm Walia <40498934+ashmgarv@users.noreply.github.com>2020-10-13 10:24:59 -0700
committerGitHub <noreply@github.com>2020-10-13 13:24:59 -0400
commit854a7d8f8526e8142c416ec41682468e87bcbbd2 (patch)
tree80493f0e697cc1b6d93e960fa2a0a6d5a4a91e95 /src/components/onboarding
parent6e3fe33e5e1d3818ef8bb942c1544581ab8c0688 (diff)
[TMA - 238] Added invitation code verification screen as the first onboarding screen (#46)
* Added invitation code verification screen as the first onboarding screen * Changed screen order on some screens and a quick check on back navigation
Diffstat (limited to 'src/components/onboarding')
-rw-r--r--src/components/onboarding/RegistrationWizard.tsx8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/components/onboarding/RegistrationWizard.tsx b/src/components/onboarding/RegistrationWizard.tsx
index 0094c8af..8d747b01 100644
--- a/src/components/onboarding/RegistrationWizard.tsx
+++ b/src/components/onboarding/RegistrationWizard.tsx
@@ -3,7 +3,7 @@ import {View, StyleSheet, ViewProps, Keyboard} from 'react-native';
import * as Animatable from 'react-native-animatable';
interface RegistrationWizardProps extends ViewProps {
- step: 'one' | 'two' | 'three' | 'four' | 'five';
+ step: 'one' | 'two' | 'three' | 'four' | 'five' | 'six';
}
const RegistrationWizard = (props: RegistrationWizardProps) => {
@@ -41,6 +41,8 @@ const RegistrationWizard = (props: RegistrationWizardProps) => {
<View style={props.step === 'four' ? stepActiveStyle : stepStyle} />
<View style={styles.progress} />
<View style={props.step === 'five' ? stepActiveStyle : stepStyle} />
+ <View style={styles.progress} />
+ <View style={props.step === 'six' ? stepActiveStyle : stepStyle} />
</View>
</Animatable.View>
)}
@@ -58,6 +60,8 @@ const RegistrationWizard = (props: RegistrationWizardProps) => {
<View style={props.step === 'four' ? stepActiveStyle : stepStyle} />
<View style={styles.progress} />
<View style={props.step === 'five' ? stepActiveStyle : stepStyle} />
+ <View style={styles.progress} />
+ <View style={props.step === 'six' ? stepActiveStyle : stepStyle} />
</View>
</Animatable.View>
)}
@@ -82,7 +86,7 @@ const styles = StyleSheet.create({
backgroundColor: '#e1f0ff',
},
progress: {
- width: '16%',
+ width: '13%',
height: 2,
backgroundColor: '#e1f0ff',
},