Returning the playback to the starting position (time = 0) after playing (React Native)
I am trying to write a chatapp with a audio player which can play audio file in the chatscreen. I have written the following code to achieve the play and pause function, as well as to ensure the playback will go back to time = 0 after playing.