[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-7340":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":10,"language":11,"languages":10,"totalLinesOfCode":10,"stars":12,"forks":13,"watchers":14,"openIssues":15,"contributorsCount":16,"subscribersCount":16,"size":16,"stars1d":17,"stars7d":17,"stars30d":18,"stars90d":16,"forks30d":16,"starsTrendScore":19,"compositeScore":20,"rankGlobal":10,"rankLanguage":10,"license":21,"archived":22,"fork":22,"defaultBranch":23,"hasWiki":22,"hasPages":24,"topics":25,"createdAt":10,"pushedAt":10,"updatedAt":36,"readmeContent":37,"aiSummary":38,"trendingCount":16,"starSnapshotCount":16,"syncStatus":39,"lastSyncTime":40,"discoverSource":41},7340,"react-native-track-player","doublesymmetry\u002Freact-native-track-player","doublesymmetry","The best audio player for React Native. Built on the New Architecture — Android Auto, caching, preloading, background playback, and more.","https:\u002F\u002Frntp.dev\u002F",null,"TypeScript",3711,1191,47,6,0,3,14,9,70.13,"Apache License 2.0",false,"main",true,[26,27,28,29,30,31,32,33,34,35],"android","audio","audio-library","audio-player","ios","media-control","music-library","music-player","react-native","windows","2026-06-12 04:00:33","# react-native-track-player\n\n**The premium audio player for React Native.**\n\nBuilt on the New Architecture with synchronous native calls — background playback, Android Auto, audio caching, preloading, and more.\n\n> [!IMPORTANT]\n> **Starting with V5, react-native-track-player is commercially licensed.** Personal and educational use remains free; commercial use requires a paid license — see [rntp.dev\u002Fpricing](https:\u002F\u002Frntp.dev\u002Fpricing). V4 and earlier remain available under Apache-2.0 on the [`v4` branch](https:\u002F\u002Fgithub.com\u002Fdoublesymmetry\u002Freact-native-track-player\u002Ftree\u002Fv4).\n\n[![npm version](https:\u002F\u002Fimg.shields.io\u002Fnpm\u002Fv\u002F@rntp\u002Fplayer?color=violet)](https:\u002F\u002Fwww.npmjs.com\u002Fpackage\u002F@rntp\u002Fplayer)\n[![npm downloads](https:\u002F\u002Fimg.shields.io\u002Fnpm\u002Fdm\u002F@rntp\u002Fplayer)](https:\u002F\u002Fwww.npmjs.com\u002Fpackage\u002F@rntp\u002Fplayer)\n[![License](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002Flicense-Commercial-violet)](.\u002Flicense.txt)\n\n---\n\n## Features\n\n- **Simple TypeScript API** — Clean, minimal API fully typed for React Native developers\n- **New Architecture Native** — Built on JSI with TurboModule support, no bridge overhead, no jitter\n- **Background Playback** — Audio continues when the app is backgrounded or screen is off\n- **Android Auto** — Full support for native car dashboard integration\n- **Preloading** — Background buffering of upcoming tracks for gapless-like playback\n- **Audio Caching** — Built-in caching to reduce bandwidth and enable offline playback\n- **Remote Controls** — Lock screen, notification controls, and headset support out of the box\n- **React Hooks** — `usePlaybackState`, `useIsPlaying`, `useProgress`, `useActiveMediaItem`, and more\n\n## Requirements\n\n- React Native **0.74** or later\n- **New Architecture** enabled (Fabric + TurboModules)\n\n## Installation\n\n```sh\nnpm install @rntp\u002Fplayer\n```\n\nThen for iOS:\n\n```sh\ncd ios && pod install\n```\n\nAndroid links automatically.\n\n## Quick Start\n\n```ts\nimport TrackPlayer from '@rntp\u002Fplayer';\n\n\u002F\u002F 1. Set up the player (call once at app startup, in the foreground on Android)\nawait TrackPlayer.setupPlayer({\n  contentType: 'music',\n  handleAudioBecomingNoisy: true,\n  android: { wakeMode: 'network' },\n});\n\n\u002F\u002F 2. Add tracks and play\nawait TrackPlayer.setMediaItems([\n  {\n    url: 'https:\u002F\u002Fexample.com\u002Ftrack.mp3',\n    title: 'Track Title',\n    artist: 'Artist Name',\n    artwork: 'https:\u002F\u002Fexample.com\u002Fartwork.jpg',\n  },\n]);\n\nTrackPlayer.play();\n```\n\n```tsx\n\u002F\u002F 3. Use hooks in your UI\nimport { useIsPlaying, useProgress, useActiveMediaItem } from '@rntp\u002Fplayer';\n\nfunction PlayerUI() {\n  const { playing } = useIsPlaying();\n  const { position, duration } = useProgress();\n  const track = useActiveMediaItem();\n\n  return (\u002F* your player UI *\u002F);\n}\n```\n\n## Documentation\n\nFull documentation, API reference, and guides are available at **[rntp.dev](https:\u002F\u002Frntp.dev)**.\n\n## V5\n\nV5 is a complete rewrite and is **not backwards-compatible with V4**.\n\nKey improvements in V5:\n- Built on JSI — `getProgress()`, `getQueue()`, `isPlaying()` return synchronously\n- Full TurboModule and Fabric support\n- Rewritten Android and iOS native layers\n\n## License\n\nFree for non-commercial use. **Commercial use requires a license.**\n\nSee [license.txt](.\u002Flicense.txt) for details or visit [rntp.dev\u002Fpricing](https:\u002F\u002Frntp.dev\u002Fpricing) to purchase a commercial license.\n\nFor questions: [team@doublesymmetry.com](mailto:team@doublesymmetry.com)\n","react-native-track-player 是一款专为 React Native 设计的高级音频播放器。它基于新架构构建，支持同步原生调用，具备背景播放、Android Auto 集成、音频缓存、预加载等功能。核心功能包括简洁的 TypeScript API、无桥接开销的新架构原生支持、以及多种远程控制选项。适用于需要高质量音频播放体验的移动应用开发场景，如音乐播放器、播客应用或任何需要在后台持续播放音频的应用。请注意，从 V5 版本开始，该项目采用商业许可模式，个人和教育用途免费，商业使用需购买许可证。",2,"2026-06-11 03:11:51","top_language"]