react-router-native + nativebase Tabs initialPage sets initial tab, but tab content is not rendered!!!!
See original GitHub issuereact-native, react and native-base version
the latest for each
Expected behaviour
tab is selected and tab content is rendered
Actual behaviour
tab is selected, but tab content is not rendered!
Steps to reproduce (code snippet or screenshot)
The tabs:
<Tabs initialPage={~~(this.props.match.params.tab||0)} >
...
</Tabs>
The route:
<Route ="/tabs/:tab?" component={TabsTest} />
Screenshot of emulator/device
unable to provide screenshot
Is the bug present in both ios and android or in any one of them?
i’ll be receiving an ipad from my boss later this week, i’ll see if happens in ios as well.
Any other additional info which would help us debug the issue quicker.
if you know of a place for react native fiddles, please link it and i’ll give a code sample.
Issue Analytics
- State:
- Created 5 years ago
- Comments:9 (2 by maintainers)
Top Results From Across the Web
Nativebase Tabs not changing content when changing page ...
When I am on the page clicking the tabs, the content switches fine, but when I try to set the active tab from...
Read more >A brand new website interface for an even better experience!
react-router-native + nativebase Tabs initialPage sets initial tab, but tab content is not rendered!!!!
Read more >react-native nativeBase Tabs initialPage change to 3 but still ...
Coding example for the question react-native nativeBase Tabs initialPage change to 3 but still start at tab 0-React Native.
Read more >How to Combine Bottom Tabs, Top Tabs and a Hamburger ...
This guide will walk you through creating a simple application that contains bottom tab navigation, top tabs, and a hamburger menu to give...
Read more >Components - NativeBase
The Content component of Container is nothing but the body section of your screen. ... This will render button with no border and...
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
@r3wt I found a temporary solution to this problem first set some variable on the state in 0 state = { activePage:0 } after, update this in componentDidMount method `
and use it in page property of tabs `
`
i have the same problem
versions: -native-base: 2.4.3 -react-native: 0.53.3 -Node: 8.9.0 -Yarn: 1.5.1 -npm: 5.6.0
code:
`<Container >
before click ‘First Tab’ after click ‘First Tab’