hirbod / react-native-volume-manager

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)
MIT License
216 stars 14 forks source link

[iOS] Fix Airplay logo appearing when the volume manager is active #12

Closed Sewb21 closed 1 year ago

Sewb21 commented 1 year ago

Why

Fixes #10

How

Added a fix to scale down the native volume view so that the airplay logo doesn't randomly appear in the top left of the screen.

Testing

So to replicate this issue on the example project, I needed to add a SafeAreaView to the App.tsx and set the backgroundColor to black. Once this was done and you hit the "Hide Native UI" button the icon appears in the top left (screenshot attached).

All functionality on the screen works the same as before.

hirbod commented 1 year ago

Fixed in the new release 1.3.0 - Thanks for pointing me into the right direction @Sewb21