Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
cleanupStatusBarStyleListeners() {
if (this.backgroundListenerId) {
// Stop listening to background color changes on the
// old style. The listeners will be registered again,
// if necessary in `setStatusBarStyle`.
removeAnimatedValueListener(
this.props.style.container.backgroundColor,
this.backgroundListenerId,
);
this.backgroundListenerId = null;
}
}
cleanupStatusBarStyleListeners() {
if (this.backgroundListenerId) {
// Stop listening to background color changes on the
// old style. The listeners will be registered again,
// if necessary in `setStatusBarStyle`.
removeAnimatedValueListener(
this.props.style.container.backgroundColor,
this.backgroundListenerId,
);
this.backgroundListenerId = null;
}
}