Skip to content

A React Native module that allows you to fetch and manage audios, images, vidoes.

License

Notifications You must be signed in to change notification settings

navvitech/rn-media-library

Repository files navigation

rn-media-library

⚠️ This library is under development ⚠️

A React Native module that allows you to fetch and manage audios, images, vidoes.

Installation

npm install rn-media-library

Documentation

Check out my dedicated documentation page for all the information about this library, API's and more:

Documentation

Usage

import { getAssets } from 'rn-media-library';
 
// ...
 
// call the function inside the useEffect on mount and set the state
getAssets({ mediaType: 'audio' })
  .then((res) => {
    //parse and set the value in the state
    setAssets(JSON.parse(res));
  })
  .catch((error) => {
    console.log(error);
  });

Contributing

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

License

MIT

About

A React Native module that allows you to fetch and manage audios, images, vidoes.

Topics

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published