react-native-mediastore
TypeScript icon, indicating that this package has built-in type declarations

0.1.2 • Public • Published

react-native-mediastore

React Native Media Store

Installation

npm install react-native-mediastore

Usage

import Mediastore from "react-native-mediastore";

// ...

const result = await Mediastore.readAudioVideoExternalMedias();
type MediastoreFileType = {
  id: number,
  name: string,
  duration: number,
  size: number,
  mime: string,
  title: string,
  album: string,
  artist: string,
  genreId: string,
  genreName: string,
  contentUri: string
}

type MediastoreType = {
  readAudioVideoExternalMedias(): Promise<Array<MediastoreFileType>>;
};

Contributing

See the contributing guide to learn how to contribute to the repository and the development workflow.

License

MIT

Package Sidebar

Install

npm i react-native-mediastore

Weekly Downloads

2

Version

0.1.2

License

MIT

Unpacked Size

17 kB

Total Files

14

Last publish

Collaborators

  • spicy_sparks