jaredpalmer / formik

Build forms in React, without the tears 😭
https://formik.org
Apache License 2.0
33.87k stars 2.78k forks source link

use withFormik in react native #2441

Open HamidReza63 opened 4 years ago

HamidReza63 commented 4 years ago

❓Question

Can I use withFormic in react native? I tried to use formicEnhancer Example and i set onSubmit={handleSubmit} But it return Can't find variable handleSubmit

coreyar commented 4 years ago

Yes, you can use Formik with react native.

withFormik should also work with react-native. How are you trying to call it? An example of how to call it would be:

withFormik(config)(Form)

or with redux connect(mapStateToProps, mapDispatchToProps)(withFormik(config)(Form))

vijaychouhan-rails commented 3 years ago

we are trying with with redux connect(mapStateToProps, mapDispatchToProps)(withFormik(config)(Form))