aboutsummaryrefslogtreecommitdiff
path: root/src/screens/onboarding
diff options
context:
space:
mode:
authorAshm Walia <40498934+ashmgarv@users.noreply.github.com>2020-10-27 17:36:03 -0700
committerGitHub <noreply@github.com>2020-10-27 20:36:03 -0400
commit62d6fe2bca4bdd1a48cfe54e4c0c3fe590c3b750 (patch)
tree3afb2c723a10a2649c298e226bc31e10cec92d5a /src/screens/onboarding
parent795ba089207571ec13226f2d07c149c8697763ce (diff)
[HOT FIX] Refactor to make things clean and make the app work (#82)
* Refactored * Final refactor with an issue * It works * Whoops
Diffstat (limited to 'src/screens/onboarding')
-rw-r--r--src/screens/onboarding/ProfileOnboarding.tsx1
-rw-r--r--src/screens/onboarding/RegistrationOne.tsx6
2 files changed, 3 insertions, 4 deletions
diff --git a/src/screens/onboarding/ProfileOnboarding.tsx b/src/screens/onboarding/ProfileOnboarding.tsx
index bbabbb56..0d379a1a 100644
--- a/src/screens/onboarding/ProfileOnboarding.tsx
+++ b/src/screens/onboarding/ProfileOnboarding.tsx
@@ -20,7 +20,6 @@ import {
BirthDatePicker,
} from '../../components';
import {OnboardingStackParams} from '../../routes/onboarding';
-import {AuthContext} from '../../routes/authentication';
import ImagePicker from 'react-native-image-crop-picker';
import {
EDIT_PROFILE_ENDPOINT,
diff --git a/src/screens/onboarding/RegistrationOne.tsx b/src/screens/onboarding/RegistrationOne.tsx
index e0db0755..a901d477 100644
--- a/src/screens/onboarding/RegistrationOne.tsx
+++ b/src/screens/onboarding/RegistrationOne.tsx
@@ -145,7 +145,7 @@ const RegistrationOne: React.FC<RegistrationOneProps> = ({navigation}) => {
<Text style={styles.formHeader}>ENTER PHONE NUMBER</Text>
</View>
<TaggInput
- maxLength = {12} // currently only support US phone numbers
+ maxLength={12} // currently only support US phone numbers
accessibilityHint="Enter your phone number."
accessibilityLabel="Phone number input field."
placeholder="Phone Number"
@@ -154,7 +154,7 @@ const RegistrationOne: React.FC<RegistrationOneProps> = ({navigation}) => {
autoCapitalize="none"
returnKeyType="next"
keyboardType="phone-pad"
- onChangeText={handlePhoneUpdate}
+ onChangeText={handlePhoneUpdate}
blurOnSubmit={false}
ref={phoneRef}
valid={form.isValidPhone}
@@ -210,4 +210,4 @@ const styles = StyleSheet.create({
},
});
-export default RegistrationOne; \ No newline at end of file
+export default RegistrationOne;