react-native-track-player is an audio player library for React Native that provides background playback, Android Auto integration, audio caching, and preloading built on the React Native New Architecture.
The library solves the problem of playing audio reliably across iOS and Android while the app is backgrounded or the screen is off. It uses JSI with TurboModule support to eliminate bridge overhead, enabling synchronous native calls that return values like playback progress and queue state without jitter. The tool includes built-in audio caching to reduce bandwidth, preloading for gapless-like playback, and remote control support through lock screen notifications and headset buttons.
Developers building music or podcast applications on React Native should consider this library if they need background audio playback and native platform integrations. The tool requires React Native 0.74 or later with the New Architecture enabled. Personal and educational projects can use the library free of charge, while commercial applications require a paid license. The library offers a TypeScript API with React Hooks for managing playback state, progress tracking, and the active media item.
The project maintains active development with regular updates to its native layers and API. The codebase is written primarily in TypeScript and includes comprehensive documentation at its dedicated website. The team provides commercial support and licensing inquiries through direct contact.