Tab header does not show in "native-base": "2.3.1"
See original GitHub issueTabs work by swiping but the header saying “tab1” and “Tab2” does not show.
<Container>
<Header hasTabs>
<Left>
<Button transparent style={styles.btnHeader} onPress={() => Actions.pop()}>
<Icon active name="arrow-back" />
</Button>
</Left>
<Body >
<Title color='white' style={styles.header}>Vehicles</Title>
</Body>
<Right>
<Button transparent style={styles.btnHeader} onPress={this.props.openDrawer} >
<Icon active name="menu" />
</Button>
</Right>
</Header>
<Tabs initialPage={1}>
<Tab heading="Tab1">
<Tab1 />
</Tab>
<Tab heading="Tab2">
<Tab1 />
</Tab>
</Tabs>
</Container>
“native-base”: “2.3.1”, “prop-types”: “^15.5.10”, “react”: “16.0.0-alpha.12”, “react-native”: “0.48.4”,
Expected behaviour
Show tabs header saying “Tab1” and “Tab2”
Actual behaviour
Does not show Tab header but tabs work by swiping
Is the bug present in both ios and android or in any one of them?
Testing on Android only ##Screenshot
Issue Analytics
- State:
- Created 6 years ago
- Reactions:1
- Comments:13 (7 by maintainers)
Top Results From Across the Web
react native - Content does not show for <Tabs> in nativebase
I'm using "native-base": "^2.1.3" and "react-native": "0.44.0" and the content for my tabs does not show and I'm not sure how to fix...
Read more >Getting Started - NativeBase
To have NativeBase components running onto your native apps, all you need to do is, create a fresh React Native project and install...
Read more >Toast - NativeBase
You can use standalone toast where you don't have access to useToast hook, for example, in a different file, out of a React...
Read more >Header - NativeBase
Header. With v3 we have removed the Header as it can be easily built using HStack. You can checkout its recipe. here ....
Read more >react-native-router-flux/CHANGELOG.md - UNPKG
69, - Pop not working correctly in multiple stack in tabs ... 131, - currentScene is not showing the currently mounted screens key ......
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
@SupriyaKalghatgi initially I thought its a native-base issue. So I raised it here. Closing it here and moving to gitstrap.
Thanks for support.
@Ideasrefined tried your code. Tab headers are visible. Attaching a screenshot.
Code
Versions