From 5dfa23810d940fb98d883451c82ff236ab0a481d Mon Sep 17 00:00:00 2001 From: huhuanming Date: Thu, 18 May 2017 23:29:42 +0800 Subject: [PATCH] Add removeClippedSubviews To SectionList & FlatList --- types/react-native/index.d.ts | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/types/react-native/index.d.ts b/types/react-native/index.d.ts index ee306f8545..a7e922e1b1 100644 --- a/types/react-native/index.d.ts +++ b/types/react-native/index.d.ts @@ -3524,6 +3524,13 @@ export interface FlatListProperties { * See `ViewabilityHelper` for flow type and further documentation. */ viewabilityConfig?: any + + /** + * Note: may have bugs (missing content) in some circumstances - use at your own risk. + * + * This may improve scroll performance for large lists. + */ + removeClippedSubviews?: boolean } export interface FlatListStatic extends React.ComponentClass> { @@ -3649,6 +3656,13 @@ export interface SectionListProperties extends ScrollViewProperties { * Render a custom scroll component, e.g. with a differently styled `RefreshControl`. */ renderScrollComponent?: (props: ScrollViewProperties) => React.ReactElement + + /** + * Note: may have bugs (missing content) in some circumstances - use at your own risk. + * + * This may improve scroll performance for large lists. + */ + removeClippedSubviews?: boolean } export interface SectionListStatic extends React.ComponentClass> {