React Native生命周期

方法名 作用 constructor 构造函数,初始化需要的state 1次 componentWillMount 控件渲染前触发 1次 rander 渲染控件的方法 多次 componentDidMount 控件渲染后触发 1次 componentWillReceiveProps 组件接收到新的props时被调用 多次 shouldComponentUpdate 当组件接收到新的props和st
相关文章
相关标签/搜索