mirror of
https://github.com/status-im/react-native.git
synced 2025-01-26 17:30:25 +00:00
Flow type improvements to accept co-variant types
Differential Revision: D4848918 fbshipit-source-id: b8d4628431c57c8fda12fc7e2e38e5b2dab9b1ad
This commit is contained in:
parent
18525ce8c5
commit
b7d873b1a0
@ -139,10 +139,10 @@ class ListViewDataSource {
|
||||
* this function as the `dataBlob`.
|
||||
*/
|
||||
cloneWithRows(
|
||||
dataBlob: Array<any> | {[key: string]: any},
|
||||
rowIdentities: ?Array<string>
|
||||
dataBlob: $ReadOnlyArray<any> | {+[key: string]: any},
|
||||
rowIdentities: ?$ReadOnlyArray<string>
|
||||
): ListViewDataSource {
|
||||
var rowIds = rowIdentities ? [rowIdentities] : null;
|
||||
var rowIds = rowIdentities ? [[...rowIdentities]] : null;
|
||||
if (!this._sectionHeaderHasChanged) {
|
||||
this._sectionHeaderHasChanged = () => false;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user