ListViewDataSource#cloneWithRowsAndSections()

cloneWithRowsAndSections(dataBlob, sectionIdentities, rowIdentities)

This performs the same function as the cloneWithRows function but here you also specify what your sectionIdentities are. If you don't care about sections you should safely be able to use cloneWithRows.

sectionIdentities is an array of identifiers for sections. ie. ['s1', 's2', ...]. If not provided, it's assumed that the keys of dataBlob are the section identities.

Note: this returns a new object!

doc_React_Native
2016-06-23 04:24:24
Comments
Leave a Comment

Please login to continue.