Changing Tabs width, not the content inside
See original GitHub issueI want to customize the Tabs width, but not the width of the content of each tab.

I want the width of the Tabs header to not affect the width of the content inside each Tab.
This is my code. Currently I’m adding a style to Tabs
<Tabs
style={{
width: PixelRatio.getPixelSizeForLayoutSize(101),
}}
initialPage={0}
tabBarUnderlineStyle={ styles.tabBarUnderlineStyle }
>
<Tab
heading="Phone"
tabStyle={ styles.tabStyle }
activeTabStyle={ styles.tabStyle }
textStyle={ styles.tabBarText }
activeTextStyle={ styles.tabBarText }
>
<Content>
</Content>
</Tab>
<Tab
heading="Email"
tabStyle={ styles.tabStyle }
activeTabStyle={ styles.tabStyle }
textStyle={ styles.tabBarText }
activeTextStyle={ styles.tabBarText }
>
{/* <Tab2 /> */}
</Tab>
</Tabs>
Issue Analytics
- State:
- Created 5 years ago
- Comments:10 (7 by maintainers)
Top Results From Across the Web
How to change tabs width in material UI - Stack Overflow
If you want tabs of fixed width, you need to override the root css class passed to the Tab component, where you have...
Read more >How to Change Tab Width in Google Chrome - Winaero
To Change Tab Width in Google Chrome ... From the drop-down menu next to the Scrollable Tabstrip option, select one of the following...
Read more >tab-size - CSS: Cascading Style Sheets - MDN Web Docs
The tab-size CSS property is used to customize the width of tab characters (U+0009).
Read more >height and width of the tabs - WordPress.org
Hi @airafleur, blocks are not allowed inside table cells. To tweak the tabs width/height assign a class to the block and through theme...
Read more >Set tabs and indents in Adobe InDesign
When the top of a horizontal frame is displayed, the Tabs dialog box will snap to the top of the current text frame,...
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 Free
Top 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

@rostyys try setting the tabs container width using
tabsContainerStyleGif
Sample code
@rostyys try setting width to ScrollableTab. like
This sets the tab bar width. To change the width of each tab apply width to
tabStyleandactiveTabStyleprops of<Tab/>