From bee33a4400bda89ce80b8cf9fd74d6a07a42459b Mon Sep 17 00:00:00 2001 From: Naman Goel Date: Wed, 4 Oct 2017 14:44:12 -0700 Subject: [PATCH] Improve Flow Types Differential Revision: D5963184 fbshipit-source-id: 206f0d52b66f4f1af284445b10a8a4ff7b2cc36d --- Libraries/Lists/SectionList.js | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/Libraries/Lists/SectionList.js b/Libraries/Lists/SectionList.js index 42fe99d6c50..339b185f73b 100644 --- a/Libraries/Lists/SectionList.js +++ b/Libraries/Lists/SectionList.js @@ -23,7 +23,7 @@ import type {Props as VirtualizedSectionListProps} from 'VirtualizedSectionList' type Item = any; -type SectionBase = { +export type SectionBase = { /** * The data for rendering items in this section. */ @@ -187,10 +187,11 @@ type OptionalProps> = { legacyImplementation?: ?boolean, }; -export type Props = RequiredProps & - OptionalProps & - VirtualizedSectionListProps; - +export type Props = { + ...$Exact>, + ...$Exact>, + ...$Exact>, +}; const defaultProps = { ...VirtualizedSectionList.defaultProps, stickySectionHeadersEnabled: Platform.OS === 'ios',