react-native之SectionList 中state更新,render不重新渲染问题

问题一:react-native之SectionList 中state更新,render不重新渲染问题   解决方法:在SectionList 里面加上 extraData={this.state} 就可以了   问题二:SectionList 中 renderSectionHeader 里面绑定函数不能传参问题   解决方法:在constructor里面加上下面这句话,完美解决this this
相关文章
相关标签/搜索