the latest for each
tab is selected and tab content is rendered
tab is selected, but tab content is not rendered!
The tabs:
<Tabs initialPage={~~(this.props.match.params.tab||0)} >
...
</Tabs>
The route:
<Route ="/tabs/:tab?" component={TabsTest} />
unable to provide screenshot
i'll be receiving an ipad from my boss later this week, i'll see if happens in ios as well.
if you know of a place for react native fiddles, please link it and i'll give a code sample.
@r3wt Yes you can try to post your code sample on https://snack.expo.io/
@r3wt Its difficult to trace your issue
Please provide your example on https://snack.expo.io/
@isaaclem @SupriyaKalghatgi i will create the code sample tonight, when i am working on that side project again. thank you for your patience
@r3wt Any update on this?
Will be closing this today, in case of no activity
here's a code example https://snack.expo.io/Skd3YTlpM
hi @SupriyaKalghatgi is there any update? I have provided a code sample.
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:
` before click 'First Tab' <Header hasTabs >
<Body>
<Title>Title</Title>
</Body>
</Header>
<Tabs locked initialPage={1}>
<Tab style={{width:10}} heading={<TabHeading ><Icon name="map" /></TabHeading>}>
<Map />
</Tab>
<Tab heading={'First Tab'}>
<FirstTab />
</Tab>
<Tab heading={'Second Tab'}>
<SecondTab />
</Tab>
<Tab heading={'Third Tab'}>
<ThirdTab />
</Tab>
</Tabs>
</Container>`

after click 'First Tab'

@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
`
setTimeout(()=>{
this.setState({activePage:1})
},0)`
and use it in page property of tabs
`
<Tabs locked page={this.state.activePage}>
<Tab heading={'tab1'}>
...
</Tab>
<Tab heading={'tab2'}>
...
</Tab>
</Tabs>
`
@hernanbruno97 thank you man. i appreciate it!