A React Native module for cross-platform audio clip playback with TypeScript support and modern architecture compatibility.
React Native Sound is a library that provides audio playback capabilities for React Native applications on iOS and Android. It solves the problem of playing sound clips—such as sound effects, notifications, or background music—from various sources like app bundles, local files, or network URLs. The library offers a consistent API across platforms with features like volume control, panning, looping, and support for modern React Native architectures.
React Native developers building mobile apps that require audio playback, such as games, meditation apps, or applications needing sound feedback for user interactions. It's particularly useful for those using TypeScript or the New Architecture (TurboModules).
Developers choose React Native Sound for its cross-platform reliability, full TypeScript support, and compatibility with React Native's modern architecture. It provides a straightforward API for common audio tasks without the overhead of more complex streaming solutions, making it ideal for playing short audio clips efficiently.
React Native module for playing sound clips
Provides a unified API using AVAudioPlayer on iOS and MediaPlayer on Android, ensuring reliable playback across platforms without platform-specific code.
Fully supports React Native's New Architecture with TurboModules, offering better performance and future-proofing for apps adopting the latest React Native features.
Includes complete TypeScript definitions out of the box, enabling type-safe development and reducing runtime errors in TypeScript projects.
Offers extensive controls like play, pause, seek, volume, pan, and looping, with support for multiple simultaneous sounds, as detailed in the platform compatibility table.
Some features are platform-specific, such as pan control only on iOS and reset to beginning only on Android, leading to inconsistent behavior and potential workarounds.
Requires manual file placement in specific directories (e.g., Android's raw folder) and often faces linking issues, as highlighted in troubleshooting with common build errors and cache resets.
Focuses solely on audio playback without support for recording, streaming, or advanced audio processing, forcing developers to use additional libraries for those needs.
A Camera component for React Native. Also supports barcode scanning!
A <Video /> component for react-native
The best audio player ever built for React Native. Built on the New Architecture — Android Auto, caching, preloading, background playback, and more.
A high performance, easy to use, rock solid camera library for React Native apps.
Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.