From e75065c4ff95b6c60956e2fc5e7ab7e285a6bfac Mon Sep 17 00:00:00 2001 From: Kyle Date: Wed, 5 Jul 2017 00:01:22 -0400 Subject: [PATCH] Add render function to Flatlist union --- types/react-native/index.d.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/types/react-native/index.d.ts b/types/react-native/index.d.ts index ed662e1c46..5312be9362 100644 --- a/types/react-native/index.d.ts +++ b/types/react-native/index.d.ts @@ -3444,17 +3444,17 @@ export interface FlatListProperties extends ScrollViewProperties { /** * Rendered when the list is empty. */ - ListEmptyComponent?: React.ComponentClass | React.ReactElement | null + ListEmptyComponent?: React.ComponentClass | React.ReactElement | (() => React.ReactElement) | null /** * Rendered at the very end of the list. */ - ListFooterComponent?: React.ComponentClass | React.ReactElement | null + ListFooterComponent?: React.ComponentClass | React.ReactElement | (() => React.ReactElement) | null /** * Rendered at the very beginning of the list. */ - ListHeaderComponent?: React.ComponentClass | React.ReactElement | null + ListHeaderComponent?: React.ComponentClass | React.ReactElement | (() => React.ReactElement) | null /** * Optional custom style for multi-item rows generated when numColumns > 1