react-native-audio-ducking
TypeScript icon, indicating that this package has built-in type declarations

0.1.6 • Public • Published

react-native-audio-ducking

React Native module for audio ducking (temporarily lowering the volume level of audio)

Installation

npm install react-native-audio-ducking

iOS

npm install react-native-swift
react-native swiftify

Set the minimum iOS version 10.0

Android

no additional steps required

Usage

import AudioDucking from "react-native-audio-ducking";

// ...

  async function duckAudio() {
    try {
      await AudioDucking.duckAudio();
    } catch (error) {
      console.log('duckAudio error', error);
    }
  }

  async function removeAudioDucking() {
    try {
      await AudioDucking.removeAudioDucking();
    } catch (error) {
      console.log('removeAudioDucking error', error);
    }
  }

Contributing

See the contributing guide to learn how to contribute to the repository and the development workflow.

License

MIT

/react-native-audio-ducking/

    Package Sidebar

    Install

    npm i react-native-audio-ducking

    Weekly Downloads

    2

    Version

    0.1.6

    License

    MIT

    Unpacked Size

    85.5 MB

    Total Files

    2156

    Last publish

    Collaborators

    • trokiize