Make removeClippedSubviews default to true on ListView/RecyclingListView

Reviewed By: @satishsampath

Differential Revision: D2536046

fb-gh-sync-id: 7e0b4442bb0b3705bba3b5f7bdf873fb348a83f6
This commit is contained in:
Andy Street 2015-10-13 08:04:34 -07:00 committed by facebook-github-bot-7
parent e0b2c2e34e
commit 28f6eba22d
1 changed files with 3 additions and 0 deletions

View File

@ -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,