From 131db26cbd8c45dd08941e8a9677f7eb9165f080 Mon Sep 17 00:00:00 2001 From: Eli White Date: Fri, 5 Oct 2018 10:12:06 -0700 Subject: [PATCH] Deprecate legacyImplementation Summary: The legacy implementation doesn't provide additional functionality and has a negative impact on performance and user experience. The legacyImplementation prop is deprecated and will be removed in a future release. Reviewed By: yungsters Differential Revision: D10212762 fbshipit-source-id: 9b3416434ba392827b538c984c7ab4bcbe156e60 --- Libraries/Lists/FlatList.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Libraries/Lists/FlatList.js b/Libraries/Lists/FlatList.js index adebd267f7f..9923574c789 100644 --- a/Libraries/Lists/FlatList.js +++ b/Libraries/Lists/FlatList.js @@ -524,8 +524,9 @@ class FlatList extends React.PureComponent, void> { // comparison. if (!this._hasWarnedLegacy) { console.warn( - 'FlatList: Using legacyImplementation - some features not supported and performance ' + - 'may suffer', + 'FlatList: legacyImplementation is deprecated and will be removed in a ' + + 'future release - some features not supported and performance may suffer. ' + + 'Please migrate to the default implementation.', ); this._hasWarnedLegacy = true; }