Open alexsegura opened 4 years ago
:clipboard: Description
The getSystemVolume should not be bound to an instance Sound, but should be accessible statically.
getSystemVolume
Sound
Like this:
import Sound from 'react-native-sound' Sound.getSystemVolume(volume => console.log(volume))
:bulb: Alternatives
You can do this, but it's not ideal
import { NativeModules } from 'react-native' NativeModules.RNSound.getSystemVolume(volume => console.log(volume))
If you think it makes sense, I can create a pull request for this 🙂
iOS => getSystemVolume keeps on returning 0, once it reaches 0
:clipboard: Description
The
getSystemVolume
should not be bound to an instanceSound
, but should be accessible statically.Like this:
:bulb: Alternatives
You can do this, but it's not ideal
If you think it makes sense, I can create a pull request for this 🙂