From a8f4d166d8b0d63897bafcadb48b3cd01c0bd3bc Mon Sep 17 00:00:00 2001 From: Jan Kassens Date: Fri, 28 Apr 2017 10:59:25 -0700 Subject: [PATCH] Change data to $ReadOnlyArray Reviewed By: leebyron Differential Revision: D4968884 fbshipit-source-id: 9f202d05f7311a192cd939e6d8d72902a54b03a2 --- Libraries/Lists/FlatList.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Libraries/Lists/FlatList.js b/Libraries/Lists/FlatList.js index 3ca5a75f8..f24aaf5fb 100644 --- a/Libraries/Lists/FlatList.js +++ b/Libraries/Lists/FlatList.js @@ -62,7 +62,7 @@ type RequiredProps = { * For simplicity, data is just a plain array. If you want to use something else, like an * immutable list, use the underlying `VirtualizedList` directly. */ - data: ?Array, + data: ?$ReadOnlyArray, }; type OptionalProps = { /**