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
This commit is contained in:
Eli White
2018-10-11 23:13:28 +02:00
committed by Mike Grabowski
parent a4ef256167
commit 131db26cbd
+3 -2
View File
@@ -524,8 +524,9 @@ class FlatList<ItemT> extends React.PureComponent<Props<ItemT>, 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;
}