From 40da7bb835e1c69bc42df4471bd6ec9f1ad70205 Mon Sep 17 00:00:00 2001 From: Zhao Han Date: Fri, 15 May 2015 13:26:10 -0700 Subject: [PATCH] Add more documentation in ListViewDataSource Summary: ListViewDataSource's default data extractor can actually expect another data form: `{ sectionID_1: [ , , ... ], ... }` Closes https://github.com/facebook/react-native/pull/1285 Github Author: Zhao Han Test Plan: Changed the ListViewExample to make sure all three formats work. --- Libraries/CustomComponents/ListView/ListViewDataSource.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Libraries/CustomComponents/ListView/ListViewDataSource.js b/Libraries/CustomComponents/ListView/ListViewDataSource.js index 8e8000781..18838bd72 100644 --- a/Libraries/CustomComponents/ListView/ListViewDataSource.js +++ b/Libraries/CustomComponents/ListView/ListViewDataSource.js @@ -103,6 +103,10 @@ class ListViewDataSource { * * or * + * { sectionID_1: [ , , ... ], ... } + * + * or + * * [ [ , , ... ], ... ] * * The constructor takes in a params argument that can contain any of the