interface FormValues {
friendEmail: string;
}
const initialValues: FormValues = {
friendEmail: \'\',
};
export const Page: React.FunctionComponent
Formik's Field component doesn't support React native yet. Check this github issue for more details
However you can make use of TextInput in place of field and use it with onChangeText handler
{({
handleChange,
handleBlur,
handleSubmit,
isSubmitting,
values,
}) => (
-
)}
you can read more about Formik's usage with react-native in its documentation here