mirror of
https://github.com/status-im/react-native.git
synced 2025-02-26 16:10:58 +00:00
Fixed flowtype of ListViewDataSource to accept optional params
Summary: ParamType of ListViewDataSource currently requires all the parameters to be supplied, although they are nullable. This diff fixed it and allows the parameters to be not supplied. Reviewed By: javache Differential Revision: D3462796 fbshipit-source-id: 68dee260ff0c4020b7fd2bb7031d14c980812694
This commit is contained in:
parent
6a828328e1
commit
f03bc9016e
@ -51,9 +51,9 @@ type differType = (data1: any, data2: any) => bool;
|
||||
|
||||
type ParamType = {
|
||||
rowHasChanged: differType;
|
||||
getRowData: ?typeof defaultGetRowData;
|
||||
sectionHeaderHasChanged: ?differType;
|
||||
getSectionHeaderData: ?typeof defaultGetSectionHeaderData;
|
||||
getRowData?: ?typeof defaultGetRowData;
|
||||
sectionHeaderHasChanged?: ?differType;
|
||||
getSectionHeaderData?: ?typeof defaultGetSectionHeaderData;
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user