React Native module which adds the ability to change the system volume on iOS and Android, listen to volume changes and supress the native volume UI to build your own volume slider or UX. It can listen to iOS mute switch and ringer mode changes on Android (and let you set the ringer mode)
It looks like RN autolinking supports only one class implementing ReactPackage per library on Android. This library had two packages and one wasn't added to the generated com.facebook.react.PackageList in the app project.
How
Deleted the VolumeManagerSilentListenerPackage and moved the VolumeManagerSilentListenerModule initialization to VolumeManagerPackage.
Test plan
Tried this with a plain new RN app (the example app still uses manual linking):
npx crna my-app
yarn add react-native-volume-manager
# here applied the PR changes to `node_modules/react-native-volume-manager`
expo run:android
Why
Fixes #1
It looks like RN autolinking supports only one class implementing
ReactPackage
per library on Android. This library had two packages and one wasn't added to the generatedcom.facebook.react.PackageList
in theapp
project.How
Deleted the
VolumeManagerSilentListenerPackage
and moved theVolumeManagerSilentListenerModule
initialization toVolumeManagerPackage
.Test plan
Tried this with a plain new RN app (the example app still uses manual linking):