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

How to use validate function in functional components?

Open Aasimuddin opened this issue 4 years ago • 2 comments

I'm trying to use validate method in my functional component but getting error undefined validate? How to use this function can anyone help me??

Aasimuddin avatar Jan 26 '21 18:01 Aasimuddin

@Aasimuddin any solution?

codal-hkrishnani avatar Jul 15 '21 07:07 codal-hkrishnani

@Aasimuddin Please check this PR #60. I have made a custom hook to be used inside functional components, you will find how to use it in the readme file :)

AymanHossam avatar Aug 24 '21 17:08 AymanHossam