{"size": 462, "ext": "js", "max_stars_repo_path": "constants/FormDefinitions.js", "max_stars_repo_name": "nathanssantos/react-native-boilerplate", "max_stars_repo_stars_event_min_datetime": "2022-02-24T21:48:26.000Z", "max_stars_repo_stars_event_max_datetime": "2022-03-06T10:24:21.000Z", "max_issues_repo_path": "constants/FormDefinitions.js", "max_issues_repo_name": "nathanssantos/react-native-boilerplate", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "constants/FormDefinitions.js", "max_forks_repo_name": "nathanssantos/react-native-boilerplate", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": 10, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 25.6666666667, "max_line_length": 80, "alphanum_fraction": 0.696969697}
import * as Yup from 'yup';
import { REQUIRED_FIELD, INVALID_EMAIL, PASSWORD_MIN_LENGTH } from './Messages';

const login = {
  schema: {
    email: Yup.string().email(INVALID_EMAIL).required(REQUIRED_FIELD),
    password: Yup.string().required(REQUIRED_FIELD).min(6, PASSWORD_MIN_LENGTH),
  },
  initialValues: {
    email: 'test@email.com',
    password: '123456',
  },
};

login.validationSchema = Yup.object().shape(login.schema);

export default { login };
