Closed ghost closed 4 years ago
@alobaton Define the form-control
outside of the React
component since you're using hooks and every time you're component re-renders you're initializing the form again.
I hope it helps.
@bietkul Man, my fault... I'm still new to react. Thank you very much, it was very helpful! Now I know something about hooks.
Describe the bug
Hi, I'm trying to use this library with React Native. I followed the steps in the Basic example section. Also I configure a React state because I need to show or hide password. But when I click in the show/hide button the form values are null, althought in the screen they are showed.
LOG Form values {"password": "hgf", "rememberMe": true, "username": "Gg"} <- Before click show/hide button LOG Form values {"password": null, "rememberMe": false, "username": null} <- After click show/hide button
Am I skipping any steps?
To Reproduce
Expected behavior Screenshots
Desktop (please complete the following information):
Additional context