Add more documentation in ListViewDataSource

Summary:
ListViewDataSource's default data extractor can actually expect another data form:

`{ sectionID_1: [ <rowData1>, <rowData2>, ... ], ... }`
Closes https://github.com/facebook/react-native/pull/1285
Github Author: Zhao Han <cx.chenghai+github@gmail.com>

Test Plan: Changed the ListViewExample to make sure all three formats work.
This commit is contained in:
Zhao Han 2015-05-15 13:26:10 -07:00
parent d72045932e
commit 40da7bb835
1 changed files with 4 additions and 0 deletions

View File

@ -103,6 +103,10 @@ class ListViewDataSource {
*
* or
*
* { sectionID_1: [ <rowData1>, <rowData2>, ... ], ... }
*
* or
*
* [ [ <rowData1>, <rowData2>, ... ], ... ]
*
* The constructor takes in a params argument that can contain any of the