react-native-flat-button | Flat button component | iOS library
kandi X-RAY | react-native-flat-button Summary
kandi X-RAY | react-native-flat-button Summary
Flat button component for react-native
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of react-native-flat-button
react-native-flat-button Key Features
react-native-flat-button Examples and Code Snippets
Community Discussions
Trending Discussions on react-native-flat-button
QUESTION
I have a signup form working great, fine ! But I want to make a boolean field : "terms" and I want that when it's clicked, it allows you to validate the form. But when not clicked, you can't sign up. I don't know how I can manage to do that.
My idea was to make a condition "if terms are accepted then => the form is validated and you can go to your account". It seems to me that it's the right way to do it but I don't know how I can do that. Maybe in creating a const terms as I did for Email, phone and password, but how to write that it must be validate to signup ? maybe with something like "accepted false" in the state but I don't know how to passe the "accepted" options in the field "terms"...
Thanks for any help.
...ANSWER
Answered 2020-Jan-28 at 12:50I added in the state "accepted: false" to pass it true when terms are clicked "this.setState({accepted:true});"
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install react-native-flat-button
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page