1.0.7 • Published 6 years ago

react-native-music-files v1.0.7

Weekly downloads
9
License
MIT
Repository
github
Last release
6 years ago

react-native-music-files

A light native module based on react-native-get-music-files, to get Android local tracks.

Getting started

$ npm install react-native-music-files --save

Mostly automatic installation

$ react-native link react-native-music-files

Permission

Ensure to add

<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"/>

in your Android manifest file and check for permissions.

Usage

import {getTracks, MusicFile} from 'react-native-music-files';

getTracks().then(tracks: MusicFile[] => {});

on Android greater than 19 getTracks() runs on a seperate thread and doesn't block your UI thread.

1.0.7

6 years ago

1.0.6

6 years ago

1.0.5

6 years ago

1.0.4

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago