react-native-formik
react-native-formik copied to clipboard
Ability to perform field-level validations?
The <Field /> component from Formik allows for field-level validation and currently this is a bit of a pain to do with react-native-formik. Are there any plans to support it out of the box?
Hello, any news regarding this feature?
I am facing the same problem atm, @rk1 did you find a workaround?
I'm using Yup and it works great for validation, even on custom components.
@florenzo-42 I'm settled for not using <Field /> at all, instead I'm using my own component and getting errors from the formik props manually.
Any news? I guess we just need to add the validade on the withFormikControl HOC
I just used the validationSchema prop. Search on Formik git home page for "validationSchema". That's exactly what worked for me. No HOC needed for that.