1.0.3 • Published 7 years ago

react-native-allaudio-meta-data v1.0.3

Weekly downloads
12
License
MIT
Repository
github
Last release
7 years ago

react-native-allaudio-meta-data

Small android library for loading all audio tracks and meta data using MediaStore.Audio.Media 1. Very fast 2. 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

  1. 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 the getPackages() method
  1. 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')
  2. 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 ❤

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago