项目作者: helderburato

项目描述 :
🚧 Persist a Formik form to AsyncStorage
高级语言: JavaScript
项目地址: git://github.com/helderburato/react-native-formik-persist.git


🚧 React Native Formik Persist

Under construction.

Project rn-formik-persist will be created in NPM soon.

Requirements

How to Use

Load the following code in your view with formik:

  1. import useFormikPersist from 'rn-formik-persist';
  2. useFormikPersist({
  3. storageKey: '@your_form_storage_key',
  4. setValues,
  5. setErrors,
  6. values,
  7. errors,
  8. });

After submit your form, you could clear form just like the following:

  1. import FormikPersist from 'rn-formik-persist';
  2. await FormikPersist.remove('@your_form_storage_key');