We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ad98809 commit c5cb1e1Copy full SHA for c5cb1e1
sound.js
@@ -106,7 +106,7 @@ Sound.prototype.isLoaded = function() {
106
107
Sound.prototype.play = function(onEnd) {
108
if (this._loaded) {
109
- RNSound.play(this._key, onEnd ? (successfully) => onEnd(successfully) : null);
+ RNSound.play(this._key, (successfully) => onEnd && onEnd(successfully));
110
} else {
111
onEnd && onEnd(false);
112
}
0 commit comments