tab style not working
See original GitHub issueI have gone through these following points
- [done] Check latest documentation: https://docs.nativebase.io/
- [done] Check for existing open/closed issues for a possible duplicate before creating a new issue: https://github.com/GeekyAnts/NativeBase/issues
- [done] Use the latest NativeBase release: https://github.com/GeekyAnts/NativeBase/releases
- [not related] Check examples from NativeBase KitchenSink https://github.com/GeekyAnts/NativeBase-KitchenSink
- [no] For discussion purpose make use of NativeBase Slack: http://slack.nativebase.io/
- [no] For queries related to theme, check [Theme Variables]
version
node: 10.9.0
npm: 6.2.0
"react": "16.4.1",
"react-native": "0.56.0",
"native-base": "^2.8.0"
Expected behaviour:
style should be apply to TabHeading
Actual behaviour
style not working for TabHeading
Steps to reproduce
i am applying background color but its not working
you can see in image there is not red or green color as i expect.
<Tabs>
<Tab
heading={
<TabHeading
activeTabStyle={{ backgroundColor: 'green' }}
tabStyle={{ backgroundColor: "red" }}
>
<Text>Comment</Text>
</TabHeading>}>
<Comment comment={comments}/>
</Tab>
<Tab
heading={
<TabHeading
activeTabStyle={{ backgroundColor: 'green' }}
tabStyle={{ backgroundColor: "red" }}
>
<Text>History</Text>
</TabHeading>}>
<History comment={comments} stackUsers={this.props.stackUsers} />
</Tab>
</Tabs>
Is the bug present in both iOS and Android or in any one of them?
this issue is in IOS
, not sure about android
Issue Analytics
- State:
- Created 5 years ago
- Comments:26 (10 by maintainers)
Top Results From Across the Web
Why isn't my active tab styling being applied? - Stack Overflow
I have added border color as green to active tab using CSS but when I was clicking a tab border color green as...
Read more >Style not working on tabs · Issue #1698 · valor-software/ngx ...
In my case it'd work if the styling are set in the global styles.css file, but not when they're set inside the component's...
Read more >Style for dataTables does not work for all my tabs
I have 5 tabs that I would like to have the data styled But it only works for the first tab.
Read more >Elementor Style tab on Widget Panel Not Working
Whenever I try to edit the page and edit any element or section and click on the “Style” tab, nothing appears there. I...
Read more >Navs - Bootstrap
Documentation and examples for how to use Bootstrap's included navigation components.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@ZeroCool00 I found a solution to my problem, gonna post here case anyone else needs, check if it solves yours.
This worked for me