Guest User

Untitled

a guest
May 23rd, 2018
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.87 KB | None | 0 0
  1. <View>
  2. <SectionList
  3. renderItem={({item, index, section}) => <CellMainNews isFirst={index===0 ? true: false} data={ item } onPress = {item.onPress } />}
  4. renderSectionHeader={({section: {title}}) => (
  5. <Text style={{fontWeight: 'bold'}}>{title}</Text>
  6. )}
  7. sections={[
  8. {title: 'Top post', data: this.props.featured.top, renderItem: overrideRenderItem },
  9. {title: 'Featured posts', data: this.props.featured.secundary, renderItem: overrideRenderItemTwo },
  10. {title: 'Stories', data: this.props.stories},
  11. ]}
  12. keyExtractor={(item, index) => item + index}
  13. />
  14.  
  15. {this.props.loading &&
  16. <View>
  17. <ActivityIndicator size={100} color="red" animating={this.props.loading} />
  18. </View>
  19. }
  20. </View>
Add Comment
Please, Sign In to add comment