function reportMissingTeardowns() {
    // If we've determined that Animated isn't actually from react-native,
    // we ignore all detected "violations".
    if (unexpectedImport) {
      return;
    }
    // Get list of all animated nodes that remain active (not torn down)
    const componentAnimations = Object.values(activeAnimations);
    // Iterate through all nodes failing the lint rule
    // and use context.report to surface error to user.
    componentAnimations.forEach(activeNodes => {
      Object.values(activeNodes).forEach(node => {
        context.report({
          node: node,
          message: `Must tear down animations when component unmounts`
        });
      });
    });
  }
/**
   * Report teardown violations (animations that are set but not
   * torn down in componentWillUnmount)
   */
Report teardown violations (animations that are set but not
torn down in componentWillUnmount)
Report teardown violations ( animations that are set but not torn down in componentWillUnmount )
function reportMissingTeardowns() {
    if (unexpectedImport) {
      return;
    }
    const componentAnimations = Object.values(activeAnimations);
    componentAnimations.forEach(activeNodes => {
      Object.values(activeNodes).forEach(node => {
        context.report({
          node: node,
          message: `Must tear down animations when component unmounts`
        });
      });
    });
  }
function reportMissingTeardowns ( ) { if ( unexpectedImport ) { return ; } const componentAnimations = Object . values ( activeAnimations ) ; componentAnimations . forEach ( activeNodes => { Object . values ( activeNodes ) . forEach ( node => { context . report ( { node : node , message : ` ` } ) ; } ) ; } ) ; }
Report teardown violations (animations that are set but not
 torn down in componentWillUnmount)
Report teardown violations ( animations that are set but not torn down in componentWillUnmount )
// If we've determined that Animated isn't actually from react-native, // we ignore all detected "violations". // Get list of all animated nodes that remain active (not torn down) // Iterate through all nodes failing the lint rule // and use context.report to surface error to user.