Skip to content

Commit

Permalink
fix: clears queue on iOS when you call reset() (#1900)
Browse files Browse the repository at this point in the history
  • Loading branch information
fivecar authored Feb 3, 2023
1 parent 480f649 commit e3c670a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions ios/RNTrackPlayer/RNTrackPlayer.swift
Original file line number Diff line number Diff line change
Expand Up @@ -505,6 +505,7 @@ public class RNTrackPlayer: RCTEventEmitter, AudioSessionControllerDelegate {
if (rejectWhenNotInitialized(reject: reject)) { return }

player.stop()
player.clear()
resolve(NSNull())
}

Expand Down

0 comments on commit e3c670a

Please sign in to comment.