很简单,让你的FlatList 使用 extraData 属性. 通过配置extraData={this.state},FlatList就会当this.state数据发生改变时,更新数据。
確定! 回上一頁