DEV Community

Discussion on: Build and validate forms in React Native using Formik and Yup

Collapse
 
cabhara profile image
Christina Bharara

didn't work for me.. getting error "check the render method of Formik".

Collapse
 
amanhimself profile image
Aman Mittal

Are you using the same version of Formik dep as the demo in Github repo? Maybe this could be because Formik 2.0 was recently released.

Collapse
 
cabhara profile image
Christina Bharara

yes using Formik 2.1.2. I got it to work. Had to change Fragment to React.Fragment, Yup to yup in the code, and one comma is missing in your code example. Thanks!

Thread Thread
 
amanhimself profile image
Aman Mittal

I am glad it worked out for you. I am sorry for the missing comma, will fix that.