shouldComponentUpdate 函数原型
boolean shouldComponentUpdate(nextProps, nextState)
当 React Native 决定是否重新渲染组件时,会先调用 shouldComponentUpdate 函数,如果返回值为 false 则不会重新渲染组件
shouldComponentUpdate 函数原型
boolean shouldComponentUpdate(nextProps, nextState)
当 React Native 决定是否重新渲染组件时,会先调用 shouldComponentUpdate 函数,如果返回值为 false 则不会重新渲染组件