检查一下ScrollableTabView使用是否正确,可参考:
<ScrollableTabView
tabBarUnderlineStyle={{backgroundColor: '#e7e7e7', height: 2}}
tabBarInactiveTextColor='mintcream'
tabBarActiveTextColor='white'
ref="scrollableTabView"
tabBarBackgroundColor={this.state.theme.themeColor}
initialPage={0}
renderTabBar={() => <ScrollableTabBar style={{height: 40, borderWidth: 0, elevation: 2}}
tabStyle={{height: 39}}/>}
>
{this.state.languages.map((reuslt, i, arr)=> {
let language = arr[i];
return language.checked ? <PopularTab key={i} tabLabel={language.name} {...this.props}/> : null;
})}
</ScrollableTabView>