react native tap切换页面卡顿

问题描述:做一个页面,左边是导航,每次点击一个菜单,右边立即显示出对应的视图,数据会重新过滤,使用setState 更新视图,会卡顿

解决办法:

InteractionManager.runAfterInteractions(() => {
  this.setState()
})
原文地址:https://www.cnblogs.com/windseek/p/11137122.html