problem description
I want to use a long list, but I can"t render the data. I"ve got the data I need.
the environmental background of the problems and what methods you have tried
I read the code example on the official website of ant design mobile . The main reason is that dataSource does not understand. The link given is incorrect, and I feel that the problem may lie here.
related codes
/ / Please paste the code text below (do not replace the code with pictures)
<ListView
ref={el => this.lv = el}
dataSource={this.state.dataSource}
/*renderFooter={() => (<div style={{ padding: 30, textAlign: "center" }}>
{this.state.isLoading ? "Loading..." : "Loaded"}
</div>)}*/
renderRow={row}
className="songs-list"
pageSize={30}
scrollRenderAheadDistance={500}
style={{height: "400px"}}
/>
</WingBlank>
);
}
}