https://github.com/drazail/react-native-media-store
https://github.com/drazail/react-native-media-store
Last synced: 7 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/drazail/react-native-media-store
- Owner: Drazail
- Created: 2020-11-19T11:55:21.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2020-11-19T12:12:25.000Z (almost 5 years ago)
- Last Synced: 2025-02-05T15:46:29.694Z (8 months ago)
- Language: Java
- Size: 75.2 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# react-native-media-store
## this package only supports Android
## Instalation
`$ npm i react-native-media-store`
## Imports
```javascript
import { MusicFiles, Constants, CoverImage } from "react-native-media-store";
```## Constants
```javaScript
{
SortBy: {
Artist: 'ARTIST',
Album: 'ALBUM',
Title: 'TITLE',
},
SortOrder: {
Ascending: 'ASC',
Descending: 'DESC',
},
}```
### example
```javascript
import {Constants} from 'react-native-media-store';
const sortBy = Constants.SortBy.Title,
const sortOrder = Constants.SortOrder.Ascending,```
## Methods
```javascript
import { MusicFiles } from "react-native-media-store";
```check index.d.ts
### Components
If you want to show only a couple of covers in your page using this component instead of `cover: true` should yield better performance.
:heavy_exclamation_mark: this component runs on the Main thread. using it in larg lists WILL cause performance issues.
Extends Image.
```javascript
```