Skip to content

Commit

Permalink
Nit change to VirtualizedSectionList callback flow type
Browse files Browse the repository at this point in the history
Summary: This change surprisingly fixes a Flow error because these types weren't compatible with the prop types these were passed into that had `info: `. Flow passes now though!

Reviewed By: lunaleaps

Differential Revision: D17863131

fbshipit-source-id: 094f1d97e96686d16bb69732b8a4b319492b5780
  • Loading branch information
TheSavior authored and facebook-github-bot committed Oct 11, 2019
1 parent 8eea187 commit 7a2e83d
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions Libraries/Lists/VirtualizedSectionList.js
Original file line number Diff line number Diff line change
Expand Up @@ -75,11 +75,15 @@ type OptionalProps<SectionT: SectionBase<any>> = {
/**
* Rendered at the top of each section.
*/
renderSectionHeader?: ?({section: SectionT}) => null | React.Element<any>,
renderSectionHeader?: ?(info: {
section: SectionT,
}) => null | React.Element<any>,
/**
* Rendered at the bottom of each section.
*/
renderSectionFooter?: ?({section: SectionT}) => null | React.Element<any>,
renderSectionFooter?: ?(info: {
section: SectionT,
}) => null | React.Element<any>,
/**
* Rendered at the bottom of every Section, except the very last one, in place of the normal
* ItemSeparatorComponent.
Expand Down

0 comments on commit 7a2e83d

Please sign in to comment.