npm react-native-volume-manager 1.0.1
Release 1.0.1

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

API changes

Breaking changes

  • useSilentSwitch changes return type from boolean to RingMuteSwitchStatus
  • addSilentListener changes parameter type from (status: boolean) => void to (status: RingMuteSwitchEventCallback) => void
  • type eventCallback is replaced by RingMuteSwitchEventCallback

New features

  • introduced type RingMuteSwitchStatus = { isMuted: boolean; initialQuery: boolean }
  • introduced type RingMuteSwitchStatusCallback = (status: RingMuteSwitchStatus) => void

Thanks @bbarthec for cleaning up and providing a good solution for the initial mute state!

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

NewReleases is sending notifications on new releases.