Skip to content

Commit 3aa8f09

Browse files
elicwhitefacebook-github-bot
authored andcommitted
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
1 parent 0de99bc commit 3aa8f09

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Libraries/Lists/FlatList.js

+3-2
Original file line numberDiff line numberDiff line change
@@ -525,8 +525,9 @@ class FlatList<ItemT> extends React.PureComponent<Props<ItemT>, void> {
525525
// comparison.
526526
if (!this._hasWarnedLegacy) {
527527
console.warn(
528-
'FlatList: Using legacyImplementation - some features not supported and performance ' +
529-
'may suffer',
528+
'FlatList: legacyImplementation is deprecated and will be removed in a ' +
529+
'future release - some features not supported and performance may suffer. ' +
530+
'Please migrate to the default implementation.',
530531
);
531532
this._hasWarnedLegacy = true;
532533
}

0 commit comments

Comments
 (0)