Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <View>
- <SectionList
- renderItem={({item, index, section}) => <CellMainNews isFirst={index===0 ? true: false} data={ item } onPress = {item.onPress } />}
- renderSectionHeader={({section: {title}}) => (
- <Text style={{fontWeight: 'bold'}}>{title}</Text>
- )}
- sections={[
- {title: 'Top post', data: this.props.featured.top, renderItem: overrideRenderItem },
- {title: 'Featured posts', data: this.props.featured.secundary, renderItem: overrideRenderItemTwo },
- {title: 'Stories', data: this.props.stories},
- ]}
- keyExtractor={(item, index) => item + index}
- />
- {this.props.loading &&
- <View>
- <ActivityIndicator size={100} color="red" animating={this.props.loading} />
- </View>
- }
- </View>
Add Comment
Please, Sign In to add comment