Preparing search index...

    Function usePulseOpacity

    • Returns a stable Animated.Value that loops a pulsing opacity between min and max. The animation starts on mount and stops on unmount.

      Parameters

      • min: number = 0.3

        Lowest opacity in the pulse. Defaults to 0.3.

      • max: number = 0.7

        Highest opacity in the pulse. Defaults to 0.7.

      • duration: number = 1000

        Duration of each half-cycle in milliseconds. Defaults to 1000.

      Returns AnimatedValue

      The animated opacity value to assign to a style.opacity.