React-native-router-flux: react-native-tab-view not working on Android when nested in a flux tab

Created on 25 Sep 2017  路  1Comment  路  Source: aksonov/react-native-router-flux

I am using the "react-native-starter-app" but when I tried it on Androind simulator in the last tab where there are nested "react-native-tab-view", the content of the tabs are not showing and its also not possible to navigate between tabs.

Version

Tell us which versions you are using:

  • react-native-router-flux v4.0.0-beta.21
  • react-native v0.48.1

Steps to reproduce

  1. run the react-native-starter-app on android
  2. go to the last tab using the bottom tabs
  3. you dont see any content loaded for the top tabs (no content loaded on any of the tabs from tab view).
  4. try to navigate and its not possible

screen shot 2017-09-25 at 4 02 25 pm

Most helpful comment

For those who are experiencing the same issue, here is the solution:

<TabViewAnimated lazy style={[styles.tabContainer]} renderScene={this.renderScene} renderHeader={this.renderHeader} navigationState={this.state.navigation} onIndexChange={this.handleChangeTab} renderPager={this._renderPager} />

and

_renderPager = (props) => { return (Platform.OS === 'ios') ? <TabViewPagerScroll {...props} /> : <TabViewPagerPan {...props} /> }

Basically TabViewPagerScroll does not behave fine on Android when it comes to the nested tab views.

>All comments

For those who are experiencing the same issue, here is the solution:

<TabViewAnimated lazy style={[styles.tabContainer]} renderScene={this.renderScene} renderHeader={this.renderHeader} navigationState={this.state.navigation} onIndexChange={this.handleChangeTab} renderPager={this._renderPager} />

and

_renderPager = (props) => { return (Platform.OS === 'ios') ? <TabViewPagerScroll {...props} /> : <TabViewPagerPan {...props} /> }

Basically TabViewPagerScroll does not behave fine on Android when it comes to the nested tab views.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

maphongba008 picture maphongba008  路  3Comments

jgibbons picture jgibbons  路  3Comments

fgrs picture fgrs  路  3Comments

sarovin picture sarovin  路  3Comments

basdvries picture basdvries  路  3Comments