Skip to content

Commit

Permalink
Merge pull request #18 from expo-community/chore/refactor
Browse files Browse the repository at this point in the history
fix: typos
  • Loading branch information
amandeepmittal authored Jul 25, 2020
2 parents 7a29056 + 50547ce commit 8198801
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions screens/RegisterScreen.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,17 +17,16 @@ const validationSchema = Yup.object().shape({
.required()
.label('Name'),
email: Yup.string()
.required('Please enter a registered email')
.required('Please enter a valid email')
.email()
.label('Email'),
password: Yup.string()
.required()
.min(6, 'Password must have at least 6 characters')
.label('Password'),
confirmPassword: Yup.string()
.oneOf([Yup.ref('password')], 'Confirm Password must matched Password')
.required('Confirm Password is required'),
check: Yup.boolean().oneOf([true], 'Please check the agreement')
.oneOf([Yup.ref('password')], 'Confirm Password must match Password')
.required('Confirm Password is required')
});

export default function RegisterScreen({ navigation }) {
Expand Down

0 comments on commit 8198801

Please sign in to comment.