0.1.6 • Published 3 years ago

react-native-audio-ducking v0.1.6

Weekly downloads
6
License
MIT
Repository
github
Last release
3 years ago

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

0.1.6

3 years ago

0.1.4

4 years ago

0.1.5

4 years ago

0.1.3

4 years ago

0.1.2

4 years ago

0.1.0

4 years ago