Open ithustle opened 3 years ago
When I touch on pause control the song is paused but change description song to previous track played.
pause
const remoteControls = () => { MusicControl.on(Command.pause, () => { props.pauseSong(); MusicControl.updatePlayback({ state: MusicControl.STATE_PAUSED, }); }) MusicControl.on(Command.play, () => { props.resumeSong(); MusicControl.updatePlayback({ state: MusicControl.STATE_PLAYING, }); }) }
I called remoteControls() functions on useEffect.
remoteControls()
useEffect
Platform ?
Description
When I touch on
pause
control the song is paused but change description song to previous track played.I called
remoteControls()
functions onuseEffect
.Platform ?