From f48da02f41b64f27a6912e08704a17a6bd656b2c Mon Sep 17 00:00:00 2001 From: Andrew Goodale Date: Thu, 20 Apr 2017 11:28:48 -0400 Subject: [PATCH] Re-order optional props to match documentation --- types/react-native/index.d.ts | 60 +++++++++++++++++------------------ 1 file changed, 30 insertions(+), 30 deletions(-) diff --git a/types/react-native/index.d.ts b/types/react-native/index.d.ts index 4a18a8f551..1d67c42b5a 100644 --- a/types/react-native/index.d.ts +++ b/types/react-native/index.d.ts @@ -3632,9 +3632,24 @@ export interface SectionListData { export interface SectionListProperties extends ScrollViewProperties { /** - * An array of objects with data for each section. + * Rendered in between adjacent Items within each section. */ - sections: SectionListData[] + ItemSeparatorComponent?: React.ComponentClass | null + + /** + * Rendered at the very end of the list. + */ + ListFooterComponent?: React.ComponentClass | null + + /** + * Rendered at the very beginning of the list. + */ + ListHeaderComponent?: React.ComponentClass | null + + /** + * Rendered in between each section. + */ + SectionSeparatorComponent?: React.ComponentClass | null /** * Used to extract a unique key for a given item at the specified index. Key is used for caching @@ -3643,6 +3658,17 @@ export interface SectionListProperties extends ScrollViewProperties { */ keyExtractor?: (item: ItemT, index: number) => string + /** + * If provided, a standard RefreshControl will be added for "Pull to Refresh" functionality. + * Make sure to also set the refreshing prop correctly. + */ + onRefresh?: (() => void) | null + + /** + * Set this true while waiting for new data from a refresh. + */ + refreshing?: boolean | null + /** * Default renderer for every item in every section. Can be over-ridden on a per-section basis. */ @@ -3654,35 +3680,9 @@ export interface SectionListProperties extends ScrollViewProperties { renderSectionHeader?: (info: {section: SectionListData}) => React.ReactElement | null /** - * Rendered in between each item, but not at the top or bottom + * An array of objects with data for each section. */ - ItemSeparatorComponent?: React.ComponentClass | null - - /** - * Rendered at the bottom of all the items. - */ - ListFooterComponent?: React.ComponentClass | null - - /** - * Rendered at the top of all the items. - */ - ListHeaderComponent?: React.ComponentClass | null - - /** - * Rendered in between each section. - */ - SectionSeparatorComponent?: React.ComponentClass | null - - /** - * If provided, a standard RefreshControl will be added for "Pull to Refresh" functionality. - * Make sure to also set the refreshing prop correctly. - */ - onRefresh?: (() => void) | null - - /** - * Set this true while waiting for new data from a refresh. - */ - refreshing?: boolean | null + sections: SectionListData[] /** * Render a custom scroll component, e.g. with a differently styled `RefreshControl`.