Is it possible to have Formik form with two values for FormikProps?
I have a form wrapper which can display different forms. FormWrapper:
type FormData = SignUpData | SignInData;interface FormWrapperProps extends FormikProps<FormData>{ ...}
It will display one form which will be either of SignInData type or SignUpData type. But when I try to pass specific formik prop like this in SignUpScreen:
<FormWrapper {...formikProps}/>
It will show this error:
Type FormikData is not assignable to type SignUpData. Type SignInData is missing the following properties from type SignUpData: name