How to use the @shoutem/animation.removeAnimatedValueListener function in @shoutem/animation

To help you get started, we’ve selected a few @shoutem/animation examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github shoutem / extensions / shoutem.navigation / app / components / ui / NavigationBarView.js View on Github external
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;
    }
  }
github shoutem / ui / navigation / NavigationBarView.js View on Github external
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;
    }
  }