Closed jaybuangan closed 3 years ago
This is by design. If the tab labels are made to fit the width of the screen then when would they start scrolling?
You could use a condition like scrollEnabled={numTabs > 5}
@andreialecu Ok. I'll play around with that. Thanks!
I'm having an issue where I only have two tabs. When i set scrollEnable=true, it doesn't expand to the full width of the screen. it keeps it roughly the size of the tab label , and leaves the rest of the tab area empty.
scrollEnable={true}
:scrollEnable={false}
:Code:
If i knew that the tabs would always be set to 2, then i'd always set
scrollEnabled={false}
but there are times where the tabs could go up to 5 and I would need it to scroll. ThenscrollEnabled={true}
does its job.Am I missing a property?