FlatList 的header view数据不刷新问题,解决方法是:
<FlatList
ListHeaderComponent={() => this.renderHeaderView()} ////要大括号和尖头,才能刷新数据
data={this.carStoreInfo.carGoodsList}
renderItem={(info: { item: M.CarGoods }) => this.renderItem(info.item)}
keyExtractor={(item: M.CarGoods, index: number) => item.id + index}
/>;