diff options
author | Ashm Walia <40498934+ashmgarv@users.noreply.github.com> | 2020-10-13 10:24:59 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-13 13:24:59 -0400 |
commit | 854a7d8f8526e8142c416ec41682468e87bcbbd2 (patch) | |
tree | 80493f0e697cc1b6d93e960fa2a0a6d5a4a91e95 /src/screens/onboarding/RegistrationOne.tsx | |
parent | 6e3fe33e5e1d3818ef8bb942c1544581ab8c0688 (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/screens/onboarding/RegistrationOne.tsx')
-rw-r--r-- | src/screens/onboarding/RegistrationOne.tsx | 18 |
1 files changed, 3 insertions, 15 deletions
diff --git a/src/screens/onboarding/RegistrationOne.tsx b/src/screens/onboarding/RegistrationOne.tsx index 9e9cabf5..12643d69 100644 --- a/src/screens/onboarding/RegistrationOne.tsx +++ b/src/screens/onboarding/RegistrationOne.tsx @@ -10,7 +10,6 @@ import { Platform, TouchableOpacity, KeyboardAvoidingView, - ActivityIndicator, } from 'react-native'; import {OnboardingStackParams} from '../../routes'; @@ -20,9 +19,10 @@ import { RegistrationWizard, TaggInput, Background, + LoadingIndicator, } from '../../components'; -import {usePromiseTracker, trackPromise} from 'react-promise-tracker'; +import {trackPromise} from 'react-promise-tracker'; import {SEND_OTP_ENDPOINT} from '../../constants'; @@ -134,22 +134,10 @@ const RegistrationOne: React.FC<RegistrationOneProps> = ({navigation}) => { </View> ); - /** - * An activity indicator to indicate that the app is working during the send_otp request. - */ - const LoadingIndicator = () => { - const {promiseInProgress} = usePromiseTracker(); - return promiseInProgress ? ( - <ActivityIndicator style={styles.load} size="large" color="#fff" /> - ) : ( - <></> - ); - }; - return ( <Background style={styles.container}> <StatusBar barStyle="light-content" /> - <RegistrationWizard style={styles.wizard} step="one" /> + <RegistrationWizard style={styles.wizard} step="two" /> <KeyboardAvoidingView behavior={Platform.OS === 'ios' ? 'padding' : 'height'} style={styles.container}> |