react-native-scrollable-tab-view icon indicating copy to clipboard operation
react-native-scrollable-tab-view copied to clipboard

ScrollableTabView的tab选中错乱

Open guoquanonly opened this issue 6 years ago • 2 comments
trafficstars

<ScrollableTabView tabBarUnderlineStyle={styles.tabBarLine} tabBarTextStyle={{fontWeight: "normal"}} renderTabBar={()=>(<ScrollableTabBar/>)} page={this.props.navigation.getParam('index', 0)} initialPage={this.props.navigation.getParam('index', 0)} onChangeTab={(obj) => { this.refs[obj.ref.ref].changeTab() }}> <....> <.....> </ScrollableTabView> 从其他页面带参数index,导航过来后,scrollableTabView的tab选中iOS上main会出现错乱,android没有问题,请问是什么原因

guoquanonly avatar Mar 19 '19 09:03 guoquanonly

delete the param initialPage will work, maybe it is a bug?

MrWinchester avatar Nov 20 '20 07:11 MrWinchester

页面初始化时是不是调用了 goToPage 方法,如果有,可以放在setTimeout里试试

MadaoChen avatar Aug 24 '23 06:08 MadaoChen