Formik not working on react native 0.65.1
Bug report
I just upgraded my react native 0.64.2 app to the latest version 0.65.1 and all of a sudden all my forms stopped working.
Current Behavior
Forms are not working in react native 0.65.1. I am not able to submit nor validate forms
Expected behavior
Everything form should work as before
Reproducible example
Suggested solution(s)
Additional context
Your environment
| Software | Version(s) |
|---|---|
| Formik | 2.2.9 |
| React | 17.0.2 |
| TypeScript | |
| Browser | |
| npm/Yarn | |
| Operating System | ios |
I have the same versions: Formik 2.2.9., react-native 0.65.1 - forms are not working on ios and android. Unable to submit or validate form.
+1 I can submit without validate
@mblenton @longb1997 did you found Any solution for this?
Nope, i thinking about switch to react-hook-form
@longb1997 I tried to do the change, but I encounter some errors using yup validations too.
@longb1997 I was able to make it work using Hermes engine... there is definitely something fishy going on...
@acollazomayer, you turn on Hermes and it works?
any update?
When I press submit, my form validation fails every field even though they pass the yup schema requirements. Any update?
I am using with rn 0.66.1 everything seems to work fine, i have hermes enabled on both ios and android
In my case, the form has an issue when I have enabled validateOnMount and I press submit, the form goes crazy. It validates the form but for some reason sort of resets and sets all fields as invalid, even if all fields pass.
If I disable that setting, everything works as expected (validation works correct and the form state stays correct after the submit action is completed)
Using hermes fixes my issues.
@mblenton @longb1997 did you found Any solution for this?
I needed to completely disable storybook - comment imports etc...
Any updates?