Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ability to perform field-level validations? #39

Open
rk1 opened this issue Nov 15, 2018 · 5 comments
Open

Ability to perform field-level validations? #39

rk1 opened this issue Nov 15, 2018 · 5 comments

Comments

@rk1
Copy link

rk1 commented Nov 15, 2018

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?

@florenzo-42
Copy link

Hello, any news regarding this feature?
I am facing the same problem atm, @rk1 did you find a workaround?

@pkreipke
Copy link

I'm using Yup and it works great for validation, even on custom components.

@rk1
Copy link
Author

rk1 commented Apr 30, 2019

@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.

@rafgoncalves
Copy link

Any news? I guess we just need to add the validade on the withFormikControl HOC

@pkreipke
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants