Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
componentDidMount () {
// setTimeout(() => {
// api.favoriteArtists().then(res => {
// console.log(res)
// })
// }, 1500)
MusicControl.enableBackgroundMode(true)
MusicControl.enableControl('play', true)
MusicControl.enableControl('pause', true)
MusicControl.enableControl('nextTrack', true)
MusicControl.enableControl('previousTrack', true)
MusicControl.enableControl('seekForward', false)
MusicControl.enableControl('seekBackward', false)
MusicControl.on('play', () => {
this.props.changeStatus('PLAYING')
})
MusicControl.on('pause', () => {
this.props.changeStatus('PAUSED')
})
MusicControl.on('nextTrack', () => {
this.props.next()
})
MusicControl.on('previousTrack', () => {