Skip to main content

React Native Local Music Library for Android & iOS

Access on-device tracks, albums, artists, artwork, lyrics, and audio metadata through one typed API.

Installnpm install @nodefinity/react-native-music-library

One API for the local music library on Android and iOS

Build local music browsers and players with direct access to tracks, albums, artists, artwork, lyrics, and detailed audio metadata.

Android MediaStore

Query local tracks, albums, and artists through Android MediaStore, with sorting and directory filtering.

iOS Music Library

Access the user's Music Library through MediaPlayer and MPMediaQuery using the same JavaScript API.

Track Metadata

Read bitrate, sample rate, channels, format, genre, composer, and other library or embedded metadata.

Artwork & Lyrics

Display artwork references and retrieve lyrics exposed by the Local Music Library or embedded in a track.

Cursor Pagination

Load large libraries efficiently with typed cursors, configurable page sizes, and flexible sorting.

React Native New Architecture

Built with TurboModules and TypeScript for a native, type-safe React Native integration.

Query the local music library in minutes

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