DEV Community πŸ‘©β€πŸ’»πŸ‘¨β€πŸ’»

DEV Community πŸ‘©β€πŸ’»πŸ‘¨β€πŸ’» is a community of 967,611 amazing developers

We're a place where coders share, stay up-to-date and grow their careers.

Create account Log in

Discussion on: Create your own radio button component in react native easily

Collapse
 
saadbashar profile image
Saad Author

Hi Lucia! May I know what are you trying to do in onSubmit function?

Collapse
 
lubuggiano profile image
Lucia Buggiano

I used the Radio Buttons as options to flag content and made the text options β€œInnapropriate”, β€œMisteading”, β€œIrrelevant” etc. I want to change the β€œselected” state to the clicked option.value and save it

Thread Thread
 
saadbashar profile image
Saad Author

Hi Lucia, I have updated my code snack example with an onSubmit call. Please check if it helps.

snack.expo.io/@saad-bashar/radio-b...

Thread Thread
 
lubuggiano profile image
Lucia Buggiano

Great thank you so much!