Skip to content
This repository was archived by the owner on Jul 22, 2026. It is now read-only.

Commit 8198801

Browse files
Merge pull request #18 from expo-community/chore/refactor
fix: typos
2 parents 7a29056 + 50547ce commit 8198801

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

screens/RegisterScreen.js

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,17 +17,16 @@ const validationSchema = Yup.object().shape({
1717
.required()
1818
.label('Name'),
1919
email: Yup.string()
20-
.required('Please enter a registered email')
20+
.required('Please enter a valid email')
2121
.email()
2222
.label('Email'),
2323
password: Yup.string()
2424
.required()
2525
.min(6, 'Password must have at least 6 characters')
2626
.label('Password'),
2727
confirmPassword: Yup.string()
28-
.oneOf([Yup.ref('password')], 'Confirm Password must matched Password')
29-
.required('Confirm Password is required'),
30-
check: Yup.boolean().oneOf([true], 'Please check the agreement')
28+
.oneOf([Yup.ref('password')], 'Confirm Password must match Password')
29+
.required('Confirm Password is required')
3130
});
3231

3332
export default function RegisterScreen({ navigation }) {

0 commit comments

Comments
 (0)