标签:his 返回 ons str nat war new const port
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);
标签:his 返回 ons str nat war new const port
原文地址:https://www.cnblogs.com/yuxingxingstar/p/9855524.html