mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-04-15 07:28:31 +08:00
Support elements for header/footer
Summary: It can be much more convenient instead of binding and setting `extraData` or what-not. Reviewed By: blairvanderhoof Differential Revision: D4829165 fbshipit-source-id: bb781fedc831059e7b5065ea4357955aed79beda
This commit is contained in:
committed by
Facebook Github Bot
parent
f72d9dd08b
commit
1b52c2a7ab
@@ -127,7 +127,7 @@ class FlatListExample extends React.PureComponent {
|
||||
<SeparatorComponent />
|
||||
<AnimatedFlatList
|
||||
ItemSeparatorComponent={SeparatorComponent}
|
||||
ListHeaderComponent={HeaderComponent}
|
||||
ListHeaderComponent={<HeaderComponent />}
|
||||
ListFooterComponent={FooterComponent}
|
||||
data={filteredData}
|
||||
debug={this.state.debug}
|
||||
|
||||
Reference in New Issue
Block a user