npm react-native-volume-manager 1.6.0
Release 1.6.0

latest releases: 2.2.0, 2.0.8, 2.0.7...
3 years ago

1.6.0 (2023-06-22)

Updates

In this release, significant changes were made to the getVolume method to improve consistency in the API and to refine the data that is returned. Please read the notes below for more detailed information.

Breaking Changes

  • Reworked Types and Return of getVolume: The types and the return value of the getVolume method have been reworked. Previously, this method could return a VolumeResult or a number. In order to maintain consistency, this method now only returns a VolumeResult. This change is reflected in commit 9ab35ed.

  • Changed getVolume Method: Along with the rework of types and return, changes have also been made to the getVolume method itself. Now, music is the default result for result.volume when requesting the volume. Also, for Android, all other volume types are returned. This change can be found in commit a260e22.

  • Please note that these changes may break existing implementations, so take care when updating.

  • Optimized all types and documentation

Features

  • Reworked Example: The example code has been updated and refined to better reflect these changes. This can be viewed in commit 9e49fa1.

Please reach out if you have any questions or feedback regarding these updates!

Fixes #15

Don't miss a new react-native-volume-manager release

NewReleases is sending notifications on new releases.