From 2c9e113f8e299d2b980fbed1adfcac5b3c212485 Mon Sep 17 00:00:00 2001 From: Spencer Ahrens Date: Thu, 6 Jul 2017 11:46:48 -0700 Subject: [PATCH] Add ListView deprecation message to docs Summary: Could have sworn we put this in a while ago... Closes https://github.com/facebook/react-native/pull/14870 Differential Revision: D5376747 Pulled By: sahrens fbshipit-source-id: d2bf3efea205defa48d6cd7f853739f17eb39ece --- Libraries/Lists/ListView/ListView.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Libraries/Lists/ListView/ListView.js b/Libraries/Lists/ListView/ListView.js index 67fa9d556..612988653 100644 --- a/Libraries/Lists/ListView/ListView.js +++ b/Libraries/Lists/ListView/ListView.js @@ -35,6 +35,12 @@ var DEFAULT_END_REACHED_THRESHOLD = 1000; var DEFAULT_SCROLL_CALLBACK_THROTTLE = 50; /** + * DEPRECATED - use one of the new list components, such as [`FlatList`](docs/flatlist.html) + * or [`SectionList`](docs/sectionlist.html) for bounded memory use, fewer bugs, + * better performance, an easier to use API, and more features. Check out this + * [blog post](https://facebook.github.io/react-native/blog/2017/03/13/better-list-views.html) + * for more details. + * * ListView - A core component designed for efficient display of vertically * scrolling lists of changing data. The minimal API is to create a * [`ListView.DataSource`](docs/listviewdatasource.html), populate it with a simple