greact-local-music-files
v0.13.0
Published
[![npm version](http://img.shields.io/npm/v/greact-local-music-files.svg?style=flat-square)](https://npmjs.org/package/greact-local-music-files "View this project on npm") [![npm downloads](http://img.shields.io/npm/dm/greact-local-music-files.svg?style=f
Downloads
19
Readme
greact-local-music-files
A library to get local music files for both Android and IOS.
Concept
... Will update later.
Install
npm i --save greact-local-music-files
| React Native version(s) | Supporting greact-local-music-files version(s) | |-------------------------|-------------------------------------------| | v0.44.0+ | v0.13.0 |
Stable version
v0.13.0
Usage
import GreactLocalMusic from 'greact-local-music-files';
GreactLocalMusic.androidLocalMusic.getAll({
appname: 'YourAppName',
artist: true,
duration: true,
cover: true,
genre: true,
title: true,
minimumSongDuration: 10000,
}).then((tracks) => {
console.log(tracks);
});
});
Props
Prop | Type | Optional | Default | Description --------------------- | -------- | -------- | ------------------------- | ----------- appname | string | No | Greact | Required to create app folder to write cover(artwork) artist | boolean | Yes | false | Return artist info in result duration | boolean | Yes | false | Return duration info in result cover | boolean | Yes | false | Return cover(artwork) image info in result genre | boolean | Yes | false | Return genere info in result title | boolean | Yes | false | Return song name in result date | boolean | Yes | false | Return date info in result minimumSongDuration | int | Yes | 0 | Options to filter music file and ringtone
MIT Licensed