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

wrong button color #69

Closed
Preeternal opened this issue Oct 22, 2017 · 4 comments
Closed

wrong button color #69

Preeternal opened this issue Oct 22, 2017 · 4 comments

Comments

@Preeternal
Copy link

Preeternal commented Oct 22, 2017

wrong color selected radio button after update to react-native 0.49.3
default
<RadioForm style={radioStyle} ref="radioForm" radio_props={this.state.types1} initial={0} formHorizontal labelHorizontal buttonColor={'#757171'} labelColor={'#757171'} animation onPress={(value, index) => { this.setState({ value1: value, value1Index: index }); }} />

@cheft
Copy link

cheft commented Oct 26, 2017

resolved by

selectedButtonColor={'#757171'}

@Preeternal
Copy link
Author

Preeternal commented Oct 29, 2017

How did you know ;)

selectedLabelColor works too

@ShaikhKabeer
Copy link

SelectedButtonColor is not working for me

@ShaikhKabeer
Copy link

ShaikhKabeer commented Apr 2, 2018

any solution for this ?

Here is my code

{this.props.companies && this.props.companies.length>0 ? {this.props.companies.map((obj, i) => { var that = this; var is_selected = this.state.value1Index == i; return (
            <RadioButton
              isSelected={is_selected}
              obj={obj}
              index={i}
              buttonColor={'#0E4C8C'}
              buttonInnerColor={'#e74c3c'}
              buttonSize={5}
              selectedButtonColor={'#757171'}
              buttonOuterSize={15}
              onPress={(value, index) => {
                this.setState({value1:value})
                this.setState({value1Index: index});
              }}/>
          </View>
          <View style={{ borderBottomColor: 'lightgrey',borderBottomWidth: 1,}}></View>
          </View>
        )
      })}
    </RadioForm>:<View />}

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

3 participants