Closed hristowwe closed 2 years ago
code in expo snack - https://snack.expo.dev/@prororype/radiobuttons
Hello @hristowwe
Do you want to set different checkbox buttons' initial value as true? if yes, you should not use group
library. You should use the react-native-bouncy-checkbox
itself and then you can set their initial values one by one
I am trying to render the initial value. I have a few radio buttons that I want to keep their previous choice. Unfortunately, this does not work properly and there is always the first choice. I keep choices in array and I don't know if that's right? So my code so far -
So my idea is to keep choices in array and when i go back to the previous step (using ref in my code) to check radio button with that id. So ids of radio buttons will be in that array (val).