Skip to content

Drazail/react-native-media-store

Repository files navigation

react-native-media-store

this package only supports Android

Instalation

$ npm i react-native-media-store

Imports

import { MusicFiles, Constants, CoverImage } from "react-native-media-store";

Constants

{
  SortBy: {
    Artist: 'ARTIST',
    Album: 'ALBUM',
    Title: 'TITLE',
  },
  SortOrder: {
    Ascending: 'ASC',
    Descending: 'DESC',
  },
}

example

import {Constants} from 'react-native-media-store';

const sortBy = Constants.SortBy.Title,
const sortOrder = Constants.SortOrder.Ascending,

Methods

import { MusicFiles } from "react-native-media-store";

check index.d.ts

Components

If you want to show only a couple of covers in your page using this component instead of cover: true should yield better performance.

❗ this component runs on the Main thread. using it in larg lists WILL cause performance issues.

Extends Image.

<CoverImage src={"pathToSong"} width={120} height={120} />

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published