ArnaudRinquin / react-native-radio-buttons

[DEPRECATED] A Radio-button like logic wrapper for React Native
https://www.npmjs.com/package/react-native-radio-buttons
MIT License
415 stars 98 forks source link

Programmatically select "selectedOption" #93

Closed andreecosta closed 7 years ago

andreecosta commented 7 years ago

hey! How can I select a default option, but show it to the user? When I select one of them programmatically, has a default one, this is what I get:

http://imgur.com/a/QjGaA

But I should be getting this:

http://imgur.com/a/QiDDf

I know that this was already asked, but if I set testOptionEqual It won't allow me to change the option. For example if I use: selectedOption={ this.state.recurrence } it won't update the UI if I change to another option.