mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-03-27 22:54:46 +08:00
Make removeClippedSubviews default to true on ListView/RecyclingListView
Reviewed By: @satishsampath Differential Revision: D2536046 fb-gh-sync-id: 7e0b4442bb0b3705bba3b5f7bdf873fb348a83f6
This commit is contained in:
committed by
facebook-github-bot-7
parent
e0b2c2e34e
commit
28f6eba22d
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user