Skip to content
This repository was archived by the owner on Jan 26, 2021. It is now read-only.
This repository was archived by the owner on Jan 26, 2021. It is now read-only.

React Native ListView  #173

@halallahh

Description

@halallahh

Hi, What is good way to fetch data to ListView?

I using this way it works but it got this warning!
(In this release you can use 'enableEmptySections' flag to render empty section headers.)

    constructor(props) {
        super();
        this.state = {
            dataSource: new ListView.DataSource({
                rowHasChanged: (row1, row2) => row1 !== row2,    
            })
        };
    }
    observe(props, state) {
        return {
          todos: new Parse.Query('Todo')
        };
    }
<ListView 
 dataSource={this.state.dataSource.cloneWithRows(this.data.todos)}
   renderRow={this.renderRow}
/>   

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions