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);
05-08 08:29