🚧 Persist a Formik form to AsyncStorage
Under construction.
Project rn-formik-persist
will be created in NPM soon.
Load the following code in your view with formik:
import useFormikPersist from 'rn-formik-persist';
useFormikPersist({
storageKey: '@your_form_storage_key',
setValues,
setErrors,
values,
errors,
});
After submit your form, you could clear form just like the following:
import FormikPersist from 'rn-formik-persist';
await FormikPersist.remove('@your_form_storage_key');