react-native-template icon indicating copy to clipboard operation
react-native-template copied to clipboard

Include Formik and Yup for forms

Open mcavaliere opened this issue 6 years ago • 2 comments

I can't think of a reason these wouldn't be a good default to have. Every project has forms, and these are prob the accepted preferred tools out there.

mcavaliere avatar Jan 08 '20 20:01 mcavaliere

@mcavaliere we've been using react-hook-form on web and I'd be curious if we could keep the same setup for RN. Do you see any issues with that approach?

cball avatar Aug 07 '20 14:08 cball

@cball haven't used react-hook-form yet, but this looks great, especially if it does that many fewer renders than Formik.

Can't see any issues from looking at the docs. We should try it on a RN project and report any challenges, but looks good. Also note that it works with yup, as well as joi and superstruct. I've used yup and it's clean and great. The others might be worth experimenting with too, see react-hool-form resolvers

mcavaliere avatar Aug 08 '20 00:08 mcavaliere