Change data to $ReadOnlyArray

Reviewed By: leebyron

Differential Revision: D4968884

fbshipit-source-id: 9f202d05f7311a192cd939e6d8d72902a54b03a2
This commit is contained in:
Jan Kassens 2017-04-28 10:59:25 -07:00 committed by Facebook Github Bot
parent 414d5a3023
commit a8f4d166d8
1 changed files with 1 additions and 1 deletions

View File

@ -62,7 +62,7 @@ type RequiredProps<ItemT> = {
* For simplicity, data is just a plain array. If you want to use something else, like an * For simplicity, data is just a plain array. If you want to use something else, like an
* immutable list, use the underlying `VirtualizedList` directly. * immutable list, use the underlying `VirtualizedList` directly.
*/ */
data: ?Array<ItemT>, data: ?$ReadOnlyArray<ItemT>,
}; };
type OptionalProps<ItemT> = { type OptionalProps<ItemT> = {
/** /**