daily pastebin goal
55%
SHARE
TWEET

Untitled

a guest Jun 14th, 2018 42 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. `onChangeTab(event) {
  2.   if (event === 1) {
  3.      intervalId = BackgroundTimer.setInterval(() => {
  4.       this.props.actions.getAllLocationAction();
  5.     }, 2000);
  6.   } else {
  7.     BackgroundTimer.clearInterval(intervalId);
  8.   }
  9.   this.setState({
  10.     activeTab: event
  11.   });
  12. }`
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top