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

selectedStyle don't work. #53

Open
lin493369 opened this issue Jun 30, 2017 · 0 comments
Open

selectedStyle don't work. #53

lin493369 opened this issue Jun 30, 2017 · 0 comments

Comments

@lin493369
Copy link

lin493369 commented Jun 30, 2017

selectedStyle don't work.
Follow is my code,i set the text color red,but it does not work,selectedIconStyle is work fine:

<Tabs selected={this.state.page}
                              selectedStyle={styles.selectedStyle}
                              onSelect={el=>this.setState({page:el.props.name})}
                              selectedIconStyle={styles.selectedIconStyle}
                              style={{top:0,height:tabHeight}}
                        >
                            <Text name="1" >日</Text>
                            <Text name="2" >周</Text>
                            <Text name="3" >月</Text>
                            <Text name="4" >年</Text>
                        </Tabs>
selectedStyle:{
      color:'red',
        fontSize:12
    },
    selectedIconStyle:{
        borderBottomWidth:2,
        borderBottomColor:'red',
        color:'red',
        height:tabHeight,
        // backgroundColor:'rgba(135,205,250,0.5)'
    },
"react": "16.0.0-alpha.12",
    "react-native": "0.45.1",
    "react-native-tabs": "^1.0.9",
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