react-native-gifted-form icon indicating copy to clipboard operation
react-native-gifted-form copied to clipboard

validate-model is out

Open danielweinmann opened this issue 9 years ago • 2 comments

Hey @FaridSafi!

As a part of last night's programming spree, I created https://github.com/danielweinmann/validate-model, which is a pretty close implementation (a.k.a copy :D) of your validation logic for GiftedFormManager, but in a separate npm package.

We could probably collaborate on that so you can clean GiftedFormManager up by using validate-model.

What do you think of that?

PS: thanks for both inspirations, BTW! It's a great work what you created!

danielweinmann avatar Feb 22 '16 17:02 danielweinmann

Interesting! I might integrate it!

FaridSafi avatar Feb 24 '16 14:02 FaridSafi

Great! Let me know if you need any help ;)

I didn't implement your whole algorithm, mainly because I didn't understand part of it. For instance, I ignored the {PATH} replacement and the k parameter in your doValidateOne function.

But since you understand the need, I think you will be able to implement it with ease. Just send a PR with anything you need and I'll integrate it ;)

danielweinmann avatar Feb 24 '16 15:02 danielweinmann