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);