Skip to content

Instantly share code, notes, and snippets.

@ahmeturganci
Created April 19, 2019 15:37
Show Gist options
  • Select an option

  • Save ahmeturganci/67aa3e9669e92bd3dba32a84f9817d2c to your computer and use it in GitHub Desktop.

Select an option

Save ahmeturganci/67aa3e9669e92bd3dba32a84f9817d2c to your computer and use it in GitHub Desktop.
ract-native-router-flux- page onExit/onEnter State clear
static onEnter = () => {
Actions.refresh({
date: new Date()
});
};
static onExit = () => {
};
componentWillReceiveProps(t) {
var self = this;
self.setState({startDate:"",requestType:0,amount:0,remark:""});
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment