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).