From 9bf8e4caf8ba8f161121d9852813b61ef11811cd Mon Sep 17 00:00:00 2001 From: huhuanming Date: Mon, 23 Oct 2017 22:56:19 +0800 Subject: [PATCH] Enhance ItemSeparatorComponent (#20807) --- types/react-native/index.d.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/types/react-native/index.d.ts b/types/react-native/index.d.ts index fe95b306e0..763a5f4020 100644 --- a/types/react-native/index.d.ts +++ b/types/react-native/index.d.ts @@ -3497,7 +3497,7 @@ export interface FlatListProperties extends VirtualizedListProperties | null + ItemSeparatorComponent?: React.ComponentType | (() => React.ReactElement) | null /** * Rendered when the list is empty. @@ -3695,7 +3695,7 @@ export interface SectionBase { renderItem?: ListRenderItem - ItemSeparatorComponent?: React.ComponentClass | null + ItemSeparatorComponent?: React.ComponentClass | (() => React.ReactElement) | null keyExtractor?: (item: ItemT, index: number) => string } @@ -3709,7 +3709,7 @@ export interface SectionListProperties extends ScrollViewProperties { /** * Rendered in between adjacent Items within each section. */ - ItemSeparatorComponent?: React.ComponentClass | null + ItemSeparatorComponent?: React.ComponentClass | (() => React.ReactElement) | null /** * Rendered when the list is empty. @@ -3729,7 +3729,7 @@ export interface SectionListProperties extends ScrollViewProperties { /** * Rendered in between each section. */ - SectionSeparatorComponent?: React.ComponentClass | null + SectionSeparatorComponent?: React.ComponentClass | (() => React.ReactElement) | null /** * A marker property for telling the list to re-render (since it implements PureComponent).