react-native-scrollable-tab-view
react-native-scrollable-tab-view copied to clipboard
After re-render tabs invalid scrollable tabs width
Hello!
After re-render tabs invalid scrollable tabs width
fix with monkey patch
if (this.state.categories[0].name === 'all' ) {
return (
<View></View>
)
} else {
return (
<View>
{this.renderModal()}
<ScrollableTabView renderTabBar={this.renderTabBar}>
{this.renderCategoriesTabs()}
</ScrollableTabView>
</View>
)
}
Thanks for great app!
Can you please reproduce on example https://github.com/skv-headless/react-native-scrollable-tab-view/blob/master/examples/FacebookTabsExample/DynamicExample.js? PR showing this bug would be awesome.
This problem is solved in PR #362. If you make a new release, it will be nice.
@ChangeSomeCode Thx for the info! I also encountered this problem now see the PR solve.
Still have an issue ,width chages dramatically,(taking the previous view's width)