mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
1bc06f18c6
Summary: This diff forces a remeasure of the children of VirtualizedLists everytime the VirtualizedList is measured. The goal is to ensure that nested VirtualizedList has the correct "scroll information" all the time, scroll information information is used by ViewabilityHelper.computeViewableItems method to determine if Items of the list are visible to the user. This new code is controlled by the MC: rn_core:enable_virtualizedlist_remeasure_children_if_needed. changelog: [internal] internal // I used an internal changelog because this is under a MC Reviewed By: lunaleaps Differential Revision: D27003249 fbshipit-source-id: f9452ceb27683b0f595dd4bffdcced0ecf6bb0b5
16 lines
325 B
JavaScript
16 lines
325 B
JavaScript
/**
|
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
*
|
|
* This source code is licensed under the MIT license found in the
|
|
* LICENSE file in the root directory of this source tree.
|
|
*
|
|
* @format
|
|
* @flow
|
|
*/
|
|
|
|
'use strict';
|
|
|
|
export default {
|
|
unstable_enableVirtualizedListRemeasureChildrenIfNeeded: (null: ?boolean),
|
|
};
|