Guest User

Untitled

a guest
Jun 14th, 2018
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.27 KB | None | 0 0
  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. }`
Add Comment
Please, Sign In to add comment