ListView list appears to return blank

tags: ListView list appears to return blank  React

Solved by setting properties:

removeClippedSubviews={false}

Solved by refresh:

Add a return message event on the previous page, return the original list in the list page, set the dataSource, and call the method to get the data.

DeviceEventEmitter.emit("refresh", "e");

this.subscription=DeviceEventEmitter.addListener("refresh", (a) => {
    / / call method
    list = [];
    this.setState({、dataSource: this.state.dataSource.cloneWithRows(list),
    });
})

Intelligent Recommendation

Vue appears blank error removal

cited from: Vue default space verification is very strict, which seriously affects programming efficiency. Because ESLint is used by default, it is used to standardize the code style. Probably eslint-...

UITableViewWrapperView: tableViewGroup type appears blank

Time: January 25, 2019 Friday Problem: Using the tableViewGroup type, this type is convenient for us to split the column, and the view of the section will follow along when scrolling; But there is an ...

AD16 export BOM appears blank

Write a blog as a learning record to deepen your impression. It may be wrong or incomplete in some places. Please comment in the next. I will correct it in time Portal:AD generates BOM/component list ...

A blank block appears in the CSS inline

When display is inline Two li, each with a width of 50%, but not in the same row Solution 1: Add font-size:0 to the parent container, so that the blank block does not occupy space, and each interval b...

More Recommendation

Blank appears when using fragmentpageradapter

Blank appears when using fragmentpageradapter   Recently I have encountered a problem when using TabLayout + ViewPager + Fragment. The design of the design has three Tabs, which are timeline A, c...

Android ListView page appears java.lang.ClassCastException

In the listView pagination, when the next page of data is swiped, java.lang.ClassCastException will appear: android.widget.HeaderViewListAdapter can't be forced into the listview exception information...

Android's ListView in addFooterView, display blank lines, blank boxes when searching

Android's ListView in addFooterView, display blank lines, blank boxes when searching As the title:    There is no problem when it is displayed normally, and there is no problem when it is no...

How to get a blank problem at the top of the ListView

Solve the top of the ListView. Use MediaQuery.removepadding package. Set Removetop: True. MediaQuery.removePadding( removeTop:true, context:context, )...

Copyright  DMCA © 2018-2026 - All Rights Reserved - www.programmersought.com  User Notice

Top