I'm using Video tag in react native to create a media player.
The audio is getting played in background but the media player stops when the song is finished. I'll have to turn the screen on again and then the song changes automatically. After that I can again put the app on background or the phone on sleep mode.
I have also added other properties to this Video tag.
The function this.handleMusicEnd() is responsible for changing the state of current song.
I enabled the background audio from Xcode to play the audio in background or sleep mode.

What can be the reason here ? The flow works fine on Android.