From 28f6eba22d5bd3dfead3a115f93e37f25b1910ca Mon Sep 17 00:00:00 2001 From: Andy Street Date: Tue, 13 Oct 2015 08:04:34 -0700 Subject: [PATCH] Make removeClippedSubviews default to true on ListView/RecyclingListView Reviewed By: @satishsampath Differential Revision: D2536046 fb-gh-sync-id: 7e0b4442bb0b3705bba3b5f7bdf873fb348a83f6 --- Libraries/CustomComponents/ListView/ListView.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Libraries/CustomComponents/ListView/ListView.js b/Libraries/CustomComponents/ListView/ListView.js index 834de83a0..98cf211d0 100644 --- a/Libraries/CustomComponents/ListView/ListView.js +++ b/Libraries/CustomComponents/ListView/ListView.js @@ -387,6 +387,9 @@ var ListView = React.createClass({ if (!props.scrollEventThrottle) { props.scrollEventThrottle = DEFAULT_SCROLL_CALLBACK_THROTTLE; } + if (props.removeClippedSubviews === undefined) { + props.removeClippedSubviews = true; + } Object.assign(props, { onScroll: this._onScroll, stickyHeaderIndices: sectionHeaderIndices,