react-native-allaudio-meta-data
v1.0.3
Published
Small android library for loading all audio tracks and meta data using MediaStore.Audio.Media
Downloads
5
Readme
react-native-allaudio-meta-data
Small android library for loading all audio tracks and meta data using MediaStore.Audio.Media
- Very fast
- Loads cover art if available.
Getting started
$ npm install react-native-allaudio-meta-data --save
Mostly automatic installation
$ react-native link react-native-allaudio-meta-data
Manual installation
Android
- Open up
android/app/src/main/java/[...]/MainActivity.java
- Add
import com.reactlibrary.RNAllaudioMetaDataPackage;
to the imports at the top of the file - Add
new RNAllaudioMetaDataPackage()
to the list returned by thegetPackages()
method
- Append the following lines to
android/settings.gradle
:include ':react-native-allaudio-meta-data' project(':react-native-allaudio-meta-data').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-allaudio-meta-data/android')
- Insert the following lines inside the dependencies block in
android/app/build.gradle
:compile project(':react-native-allaudio-meta-data')
Usage
import { Reactnativeallaudiometa } from 'react-native-allaudio-meta-data';
// TODO: What to do with the module?
componentWillMount(){
Reactnativemusicmeta().then(value=>{
console.log(value)
}).catch(err=>{
console.log(err)
})
}
PR is welcomed.
HAPPY HACKING ❤