How to use the react-native-sound.LIBRARY function in react-native-sound

To help you get started, we’ve selected a few react-native-sound examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github flarocca / react-native-music-player-service / src / MusicPlayerService.js View on Github external
return new Promise((resolve: Function, reject: Function) => {
      this._releaseTrack();

      this._trackPlaying = new Sound(track.path, Sound.LIBRARY, (error) => {
        if (error) {
          reject(error);
        } else {
          resolve();
        }
      });
    });
  }