Skip to content

Commit

Permalink
Change data to $ReadOnlyArray
Browse files Browse the repository at this point in the history
Reviewed By: leebyron

Differential Revision: D4968884

fbshipit-source-id: 9f202d05f7311a192cd939e6d8d72902a54b03a2
  • Loading branch information
kassens authored and facebook-github-bot committed Apr 28, 2017
1 parent 414d5a3 commit a8f4d16
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Libraries/Lists/FlatList.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ type RequiredProps<ItemT> = {
* 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<ItemT>,
data: ?$ReadOnlyArray<ItemT>,
};
type OptionalProps<ItemT> = {
/**
Expand Down

0 comments on commit a8f4d16

Please sign in to comment.