react-native-flexi-radio-button icon indicating copy to clipboard operation
react-native-flexi-radio-button copied to clipboard

How to reset the value in Radio group ?

Open michaelVictoriaDev opened this issue 3 years ago • 0 comments

I want to reset or no selected value

ezgif com-video-to-gif

my reset button function looks like this.

<Button transparent light
                            onPress={() => {
                                console.log(`Selected index: ${this.state.index} , value: ${this.state.value}`)
                                this.setState({
                                    index: 10,
                                    value: ''
                                })
                            }
                            } >
                            <Title style={{ fontSize: 14 }}>Reset</Title>
  </Button>

michaelVictoriaDev avatar Aug 26 '20 07:08 michaelVictoriaDev