Advertisement
Guest User

Untitled

a guest
Jun 17th, 2019
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.15 KB | None | 0 0
  1. <ScrollView
  2. ref={ref => this.scrollView = ref}
  3. scrollEventThrottle={400}
  4. onScroll={({nativeEvent}) => {
  5. this.handleScroll(nativeEvent)
  6. }}
  7. keyboardShouldPersistTaps='handled'
  8. showsVerticalScrollIndicator={false}
  9. refreshControl={
  10. <RefreshControl
  11. refreshing={this.state.refreshing}
  12. onRefresh={this._onRefresh}
  13. />
  14. }
  15. >
  16. <View style={[this.state.isSubscribingTab ? this.tabHeight() : style.mianContainer]}>
  17. <AuctionPosts ref={instance => { this.AuctionPostsChild = instance; }} _onRefreshEnd={this._onRefreshEnd} />
  18. <View style={style.mainContent}>
  19. <Tabs ref={component => this._tabs = component} locked={true} tabBarUnderlineStyle={style.tabUnderLine} onChangeTab={({ i }) => this.tabChange(i)}>
  20. <Tab activeTabStyle={{ backgroundColor: colors.white }} tabStyle={{ backgroundColor: colors.white }} heading={this.state.labels.following ? this.state.labels.following : "Following"} textStyle={style.tabTextStyle} activeTextStyle={style.activeTextTab}>
  21. <FollowingPosts ref={instance => { this.FollowingPostsChild = instance; }} _onRefreshEnd={this._onRefreshEnd} />
  22. </Tab>
  23. <Tab activeTabStyle={{ backgroundColor: colors.white }} tabStyle={{ backgroundColor: colors.white }} heading={this.state.labels.subscribing ? this.state.labels.subscribing : "Subscribing"} textStyle={style.tabTextStyle} activeTextStyle={style.activeTextTab}>
  24. <SubscribingPosts ref={instance => { this.SubscribingPostsChild = instance; }} subscribingPostCount={this.subscribingPostCount} />
  25. </Tab>
  26. </Tabs>
  27. </View>
  28. </View>
  29. </ScrollView>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement