echobind / react-native-template

Echobind's template for React Native projects
MIT License
51 stars 11 forks source link

Include Formik and Yup for forms #137

Open mcavaliere opened 4 years ago

mcavaliere commented 4 years ago

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.

cball commented 4 years ago

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

mcavaliere commented 4 years ago

@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