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

After re-render tabs invalid scrollable tabs width

Open movie4 opened this issue 10 years ago • 4 comments

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!

movie4 avatar Sep 27 '16 15:09 movie4

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.

skv-headless avatar Sep 28 '16 07:09 skv-headless

This problem is solved in PR #362. If you make a new release, it will be nice.

ChangeSomeCode avatar Oct 12 '16 07:10 ChangeSomeCode

@ChangeSomeCode Thx for the info! I also encountered this problem now see the PR solve.

summersky92 avatar Oct 12 '16 08:10 summersky92

Still have an issue ,width chages dramatically,(taking the previous view's width)

trinadhkoya avatar Nov 27 '17 16:11 trinadhkoya