Android MediaStore
Query local tracks, albums, and artists through Android MediaStore, with sorting and directory filtering.
Access on-device tracks, albums, artists, artwork, lyrics, and audio metadata through one typed API.
npm install @nodefinity/react-native-music-libraryBuild local music browsers and players with direct access to tracks, albums, artists, artwork, lyrics, and detailed audio metadata.
Query local tracks, albums, and artists through Android MediaStore, with sorting and directory filtering.
Access the user's Music Library through MediaPlayer and MPMediaQuery using the same JavaScript API.
Read bitrate, sample rate, channels, format, genre, composer, and other library or embedded metadata.
Display artwork references and retrieve lyrics exposed by the Local Music Library or embedded in a track.
Load large libraries efficiently with typed cursors, configurable page sizes, and flexible sorting.
Built with TurboModules and TypeScript for a native, type-safe React Native integration.
Retrieve tracks with cursor pagination, then load detailed metadata only when you need it.
import {
getTracksAsync,
getTrackMetadataAsync,
} from '@nodefinity/react-native-music-library';
const page = await getTracksAsync({ first: 20 });
const metadata = await getTrackMetadataAsync(page.items[0].id);Read the setup guide