Advertisement
rizkyalviandra

Article Page

Sep 20th, 2019
144
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. class Article extends React.Component {
  2. handlePage = () => {
  3.  
  4. }
  5.  
  6. render() {
  7. return(
  8. <div>
  9. <FlatList
  10.             ListHeaderComponent={(
  11.               <View style={common.flatlistHeaderContainer}>
  12.                 <Icon name="info-outline" size={24} color={color.colorMute} />
  13.                 <Text>{` ${articleData.length} Articles Found`}</Text>
  14.               </View>
  15. )}
  16.             contentContainerStyle={{ paddingHorizontal: 19 }}
  17.             data={articleData}
  18.             renderItem={this.articleCardItem}
  19.             keyExtractor={this.articleCardItemKey}
  20.             onEndReached={this.handlePages}
  21.             onEndReachedThreshold={0}
  22.           />
  23. </div>
  24. )
  25. }
  26.  
  27. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement