import React, { FC } from 'react'; import { Text, View } from 'react-native'; import { Formik } from 'formik'; import * as yup from 'yup'; import { PageWrapper, Header, BigText, Button, Input } from '../../components/'; import { styles } from './styles'; import { useResetPasswordMutation } from '../../modules/auth/api/queries/use-post-reset-password'; const ResetPasswordSchema = yup.object({ email: yup.string().email().required() }); const ResetPasswordScreen: FC = () => { const { data, error, mutate: resetPassword } = useResetPasswordMutation(); return (
{ resetPassword({ email }); }} validationSchema={ResetPasswordSchema} > {(props) => ( <> Please enter your valid email Type email which you used for registration and check your inbox for further instructions )} ); }; export default ResetPasswordScreen;