Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

97
Views
React-native-sound setNumberofLoops not working

I'm using react-native-sound package to play sound 10 times at a time in a loop but setNumberOfLoops(10) or any positive number in it does not work, it start playing 30-40 times

And how can I convert callback to promise so that I can try other way to play sound multiple times, since the current implementation is in callback for play() method (simply how can I use await with it)

export let xSound = new Sound("x.wav", Sound.MAIN_BUNDLE, (error) => {
  if (error) {
    console.log("Sound Not Loaded successfully");
    return;
  }
});

xSound.setNumberofLoops(10)
xSound.play()

Any alternatives for react-native-sound? I'm using bare workflow for my react-app

Thanks in Advance ✨

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!