NativeBase icon indicating copy to clipboard operation
NativeBase copied to clipboard

Tabs: setting initial page fails to move underlining bar

Open alfie-ab opened this issue 9 years ago • 8 comments

When I set the initialPage prop in tabs to a non-default option, it renders on the correct tab but it fails to move the underlining bar to that tab:

screen shot 2017-03-21 at 14 18 44

This is my code:

<Tabs initialPage={1}> <Tab heading="History"> <HistoryDetailTab/> </Tab> <Tab heading="Examination"> <ExaminationDetailTab/> </Tab> <Tab heading="Investigation"> <InvestigationDetailTab/> </Tab> </Tabs>

It worked on version 2.0.0 but not on anything higher than 2.0.6.

React native: 0.40.0 Native-base: 2.0.9

Any help would be much appreciated, thank you!

alfie-ab avatar Mar 21 '17 14:03 alfie-ab

Have the same issue! Any luck??

ercekal avatar Mar 22 '17 10:03 ercekal

Facing the same issue. No support found?

tishad770 avatar Apr 11 '17 06:04 tishad770

No, no support found unfortunately. I ended up changing the theme of my tabs (using StyleProvider) to make the underlining bar transparent. So now they look like this:

screen shot 2017-04-11 at 11 53 34

Which obviously isn't ideal but at least the logic works and they render on the right tab.

alfie-ab avatar Apr 11 '17 10:04 alfie-ab

This seem to work in the newer releases v2.1.x. Let me know if it works.

shivrajkumar avatar Apr 17 '17 10:04 shivrajkumar

Still not working on v2.1.4

AnthonyAltieri avatar Jul 02 '17 20:07 AnthonyAltieri

Still not working on v2.3.2. but the issue on iOS only

ikhsanalatsary avatar Oct 04 '17 09:10 ikhsanalatsary

#1010

SupriyaKalghatgi avatar Nov 17 '17 09:11 SupriyaKalghatgi

Not working on v2.3.3

rodrigoreis22 avatar Dec 19 '17 20:12 rodrigoreis22