We can create a datasource for ListView like this
var ds = new ListView.DataSource({rowHasChanged: (r1, r2) => r1 !== r2});
var dataSource = ds.cloneWithRows(['row 1', 'row 2']), };
But if I want to add items or delete items from datasource, how can I do that? Do I need to always call cloneWithRows with updated array?