thegamenicorus / react-native-flexi-radio-button

Simple and flexible Radio button for React Native App
https://www.npmjs.com/package/react-native-flexi-radio-button
MIT License
159 stars 64 forks source link

Autoselect item when clicked on the circle #14

Open suniljayaprakash opened 7 years ago

suniljayaprakash commented 7 years ago

I tried this module on react-native-windows.

I am not sure about android/ios, but on windows, I see the item gets selected when we click on Text/Image which is rendered besides the circle. Is there a configuration option to auto select when user clicks on circle that indicates the radio ?

Update: Apparently, its not an issue with this component itself. There is an issue in RNW which fails to recognize onPress if a background isn't set.

I set a transparent background on <RadioButton style={Styles.transparent} and I no longer have this issue. Just documenting it here so that if somebody else faces this issue might be able to resolve using this trick.