Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

clear pulse interval when changing from visible to not visible #24

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

redpanda-bit
Copy link

Otherwise interval continues animating on native thread.

Visible by activating MessageQueue.spy (MessageQueue.spy(true))

@gnestor
Copy link
Owner

gnestor commented Jun 22, 2019

Thanks @carlosalmonte04 for catching this. I'm so sorry I'm just seeing this now! I haven't done any React Native development for the past few years and I didn't receive an email notification from Github about this ☹️ I will review now...

}
}, PULSE_DURATION);
} else {
if (this.timer) {
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should this also be this.handleClearInterval()?

@@ -1,5 +1,5 @@
import React, { Component } from 'react';
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you revise this commit so that the only changes are the ones related to clearing the interval and not formatting?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants