How to get DataSource length in react-native?

Viewed 2781

How do I get the DataSource's length of a ListView?

Suppose I have the following declaration:

const ds = new ListView.DataSource({ rowHasChanged });
...
someObjectsDs = ds.cloneWithRows(someObjectsArray);

I've tried someObjects.length but this returns me undefined.

2 Answers
Related