Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to reset the value in Radio group ? #38

Open
michaelVictoriaDev opened this issue Aug 26, 2020 · 0 comments
Open

How to reset the value in Radio group ? #38

michaelVictoriaDev opened this issue Aug 26, 2020 · 0 comments

Comments

@michaelVictoriaDev
Copy link

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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant