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

Is there a way to change outer radio circle's color? #6

Closed bexoss closed 7 years ago

bexoss commented 7 years ago

First Thanks for making this.

Okay there is a option to change radio dot, using color into RadioButton element. But how about outer radio circle's color? Actually what I'm trying to do is cap1

gray color to unselected item, blue color to selected item. Is there a way to do it?

thegamenicorus commented 7 years ago

Hello @bexoss

You can upgrade react-native-flexi-radio-button to v. 0.1.9 I've add 'activeColor' to RadioGroup in this version. From your example, you can code like these::

<RadioGroup 
    //...other props
    color = 'grey'
    activeColor = 'blue'
>
   //...radio buttons
</RadioGroup>

Thank you for your request. Enjoy coding :)

bexoss commented 7 years ago

@thegamenicorus Thanks to quick update! You are awesome!