Check out React Native Sound - a cross platform component for accessing device audio controls.

You can use it like so:

const Sound = require('react-native-sound')

let hello = new Sound('hello.mp3', Sound.MAIN_BUNDLE, (error) => {
  if (error) {
    console.log(error)
  }
})

hello.play((success) => {
  if (!success) {
    console.log('Sound did not play')
  }
})
Answer from Tom Walters on Stack Overflow
🌐
npm
npmjs.com › package › react-native-sound
react-native-sound - npm
October 15, 2025 - 🚀 Cross-platform audio playback for React Native — Play sound clips on iOS and Android with full TypeScript support and modern React Native architecture compatibility.
      » npm install react-native-sound
    
Published   Oct 15, 2025
Version   0.13.0
Author   Zhen Wang
Discussions

What is a way to play a sound when pressing the button in React Native Expo?
https://docs.expo.io/versions/latest/sdk/audio/#audiosound This should work... - the expo docs are really good and they do a great job maintaining them so I'd honestly be surprised if this didn't work More on reddit.com
🌐 r/reactnative
11
21
September 28, 2020
How to play sound in React Native?
Releases Keep up-to-date on features we add to Stack Overflow and Stack Internal. ... Find centralized, trusted content and collaborate around the technologies you use most. Learn more about Collectives ... Bring the best of human thought and AI automation together at your work. Explore Stack Internal ... I want to play a sound in React Native... More on stackoverflow.com
🌐 stackoverflow.com
Play audio
I have a long personal history of using audio libraries in react native, I almost tried every libraries available and here is my feedback : If you need track playing, with streaming and everything, go directly with react-native-track-player. I think it's one of the most popular and I saw it grown years to years. Solid one. Playing from URL requires the URL to be the file itself (if I remember well), you can not pass some endpoint that returns a stream. If you need to play one shot sounds like SFX or anything else, just use react-native-audio-toolkit. Then, there is also two other very interesting options : You can use react-native-video and play audio only, this is a solution I used for a while but I switched to react-native-track-player because my client needed streaming and background controls. The last solution consists of using the HTML5 audio player through a Webview. This sounds hacky but believe me if you have some good JS skills you can build something very reliable. More on reddit.com
🌐 r/reactnative
12
8
September 23, 2022
How to play audio from a URL in React Native app?
I have been trying to play the audio from a Youtube video (or .mp3 URL) in my React Native app. For my purposes, I cannot download the audio files to my device, they need to be streamed from the in... More on stackoverflow.com
🌐 stackoverflow.com
🌐
npm
npmjs.com › package › react-native-sound-player
react-native-sound-player - npm
February 11, 2025 - import SoundPlayer from "react-native-sound-player"; try { // play the file tone.mp3 SoundPlayer.playSoundFile("tone", "mp3"); // or play from url SoundPlayer.playUrl("https://example.com/music.mp3"); // or play file from folder SoundPlayer.playAsset(require("./assets/tone.mp3")); } catch (e) { console.log(`cannot play the sound file`, e); } Please note that the device can still go to sleep (screen goes off) while audio is playing. When this happens, the audio will stop playing. To prevent this, you can use something like react-native-keep-awake. Or alternatively, for iOS, you can add a Background Mode of Audio, AirPlay, and Picture in Picture in XCode. To do this, select your application from Targets, then click on Signing & Capabilities and add Background Modes.
      » npm install react-native-sound-player
    
Published   Feb 11, 2025
Version   0.14.5
Author   Johnson Su
🌐
GitHub
github.com › luminos-software › react-native-play-sound
GitHub - luminos-software/react-native-play-sound: Easily play inapp sounds with react native on iOS or Android.
import { PlaySound, StopSound, PlaySoundRepeat, PlaySoundMusicVolume } from 'react-native-play-sound'; // And on press or anywhere you need it : // PlaySound('sound_name') // Note that sound name must be identical on Android and iOS // Example: <TouchableOpacity onPress={() => PlaySound('jingle_bells_keyboard')} style={styles.touchable} > <Text>Play Jingle Bell</Text> </TouchableOpacity> <TouchableOpacity onPress={() => PlaySoundRepeat('jingle_bells_keyboard')} style={styles.touchable} > <Text>Play Repeated Jingle Bell</Text> </TouchableOpacity> <TouchableOpacity onPress={() => StopSound()} style={styles.touchable} > <Text>Stop Jingle Bell</Text> </TouchableOpacity> <TouchableOpacity onPress={() => PlaySoundMusicVolume(0.4)} style={styles.touchable} > <Text>Set sound volume at 0.4</Text> </TouchableOpacity>
Starred by 23 users
Forked by 9 users
Languages   Objective-C 70.5% | Java 13.1% | JavaScript 9.4% | Python 5.1% | Ruby 1.9% | Objective-C 70.5% | Java 13.1% | JavaScript 9.4% | Python 5.1% | Ruby 1.9%
🌐
Medium
alexb72.medium.com › how-to-add-sound-to-react-native-8ef152ba1a6
How to add sound to a react-native app | by Alex | Medium
August 14, 2020 - After you have done this a project ... editor, to open this in vs code on a mac you will need to press “ctrl” and “`" at the same time. ... This will install the react-native-sound which is a fantastic package which allows you to play ...
🌐
GitHub
github.com › zmxv › react-native-sound
GitHub - zmxv/react-native-sound: React Native module for playing sound clips
🚀 Cross-platform audio playback for React Native — Play sound clips on iOS and Android with full TypeScript support and modern React Native architecture compatibility.
Starred by 2.9K users
Forked by 784 users
Languages   TypeScript 44.0% | Kotlin 24.3% | Objective-C++ 13.5% | C# 11.2% | Ruby 3.9% | Swift 1.4% | TypeScript 44.0% | Kotlin 24.3% | Objective-C++ 13.5% | C# 11.2% | Ruby 3.9% | Swift 1.4%
Find elsewhere
🌐
LogRocket
blog.logrocket.com › home › how to play sounds in react native using react-native-sound
How to play sounds in React Native using react-native-sound - LogRocket Blog
June 4, 2024 - In this guide, we’ll explore react-native-sound, a powerful audio component that can handle sound-related tasks for your React Native app.
🌐
npm
npmjs.com › package › react-native-play-sound
react-native-play-sound - npm
February 2, 2018 - import { PlaySound, StopSound, PlaySoundRepeat, PlaySoundMusicVolume } from 'react-native-play-sound'; // And on press or anywhere you need it : // PlaySound('sound_name') // Note that sound name must be identical on Android and iOS // Example: <TouchableOpacity onPress={() => PlaySound('jingle_bells_keyboard')} style={styles.touchable} > <Text>Play Jingle Bell</Text> </TouchableOpacity> <TouchableOpacity onPress={() => PlaySoundRepeat('jingle_bells_keyboard')} style={styles.touchable} > <Text>Play Repeated Jingle Bell</Text> </TouchableOpacity> <TouchableOpacity onPress={() => StopSound()} style={styles.touchable} > <Text>Stop Jingle Bell</Text> </TouchableOpacity> <TouchableOpacity onPress={() => PlaySoundMusicVolume(0.4)} style={styles.touchable} > <Text>Set sound volume at 0.4</Text> </TouchableOpacity>
      » npm install react-native-play-sound
    
🌐
About React
aboutreact.com › home › play music / sound in react native app for android and ios
Play Music / Sound in React Native App for Android and iOS
December 10, 2022 - To play Sound / Music in React Native app we are going to use Sound component provided by react-native-sound which supports playing sound clips on iOS, Android, and Windows.
🌐
GitHub
github.com › johnsonsu › react-native-sound-player
GitHub - johnsonsu/react-native-sound-player: Play sound file in ReactNative · GitHub
import SoundPlayer from "react-native-sound-player"; try { // play the file tone.mp3 SoundPlayer.playSoundFile("tone", "mp3"); // or play from url SoundPlayer.playUrl("https://example.com/music.mp3"); // or play file from folder SoundPlayer.playAsset(require("./assets/tone.mp3")); } catch (e) { console.log(`cannot play the sound file`, e); } Please note that the device can still go to sleep (screen goes off) while audio is playing. When this happens, the audio will stop playing. To prevent this, you can use something like react-native-keep-awake. Or alternatively, for iOS, you can add a Background Mode of Audio, AirPlay, and Picture in Picture in XCode. To do this, select your application from Targets, then click on Signing & Capabilities and add Background Modes.
🌐
Scaler
scaler.com › home › topics › playing sound in react native apps using react-native-sound
Playing Sound in React Native Apps using react-native-sound - Scaler Topics
August 7, 2023 - Right-click on the project. Select "Add files to {project_name}" from the options menu. Please note that these instructions are specific to iOS development in Xcode. Once the sound files have been added, proceed to build the application and run it on either a simulator or, ideally, an actual device. Playing sounds from a bundle using react-native-sound gives you the flexibility to include sound files directly within your application package, reducing dependencies on external resources.
🌐
Educative
educative.io › answers › how-to-play-sound-in-react
How to play sound in React
Start by installing the use-sound library, then import useSound into your component. Use useSound with an audio file path to get a playSound function, which you can then trigger on events like clicks, hover, or form submissions to play the specified ...
🌐
Waldo
waldo.com › home › learn
Sound in React Native Apps 101: Tutorial With Examples
August 17, 2022 - Discover record and playback testing—how it works, and how tools like Tricentis Tosca make it accessible and effective. React Native border radius in action: borderRadius examples
🌐
GitHub
gist.github.com › maitrungduc1410 › 510283f598bd28f3c7868c96159944e1
React-native-sound. Play audio from URL · GitHub
React-native-sound. Play audio from URL. GitHub Gist: instantly share code, notes, and snippets.
🌐
Josh W. Comeau
joshwcomeau.com › react › announcing-use-sound-react-hook
use-sound | a React hook that lets you play sound effects • Josh W. Comeau
A sprite is an audio file with many different sounds. By combining them into a single file, it can be a bit nicer to work with, plus you avoid many parallel HTTP requests. Here we use a sprite to build a drum machine! Test it out by clicking/tapping on the buttons, or using the numbers 1 through 4 on your keyboard.*If the keyboard shortcuts aren’t working for you, try clicking one of the buttons first. This is necessary because the playgrounds on this blog use iframes. ... import React from 'react'; import useSound from 'use-sound'; import styles from './DrumMachineDemo.module.css'; function DrumMachineDemo() { const soundUrl = '/sounds/909-drums.mp3'; const [play] = useSound(soundUrl, { sprite: { kick: [0, 350], hihat: [374, 160], snare: [666, 290], cowbell: [968, 200], } }); // Assign each drum sound to a key.