DEV Community

loading...

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!