react native 安卓home返回键页面刷新

import { withNavigationFocus } from ‘react-navigation‘;
class Warngreete extends React.Component {
constructor(props) {
super(props);
}

componentDidMount() {
this.reload();
}

    
componentWillReceiveProps(newProps) {
if(newProps.isFocused){
this.reload();
}
}

//页面执行函数
reload(){}

}
export default withNavigationFocus(Warngreete);

 

react native 安卓home返回键页面刷新

上一篇:JSP显示新闻


下一篇:基于bootstrap的jQuery多级列表树插件-解决父子节点勾选状态联动