mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-05-16 18:50:07 +08: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:
committed by
Facebook Github Bot
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;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user