Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- `onChangeTab(event) {
- if (event === 1) {
- intervalId = BackgroundTimer.setInterval(() => {
- this.props.actions.getAllLocationAction();
- }, 2000);
- } else {
- BackgroundTimer.clearInterval(intervalId);
- }
- this.setState({
- activeTab: event
- });
- }`
Add Comment
Please, Sign In to add comment