Skip to content

navvitech/rn-media-library

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, MEDIA_TYPE } from "rn-media-library";
 
// call the function inside the useEffect on mount and set the state
const fetchAssets = async () => {
  try {
    const { assets } = await getAssets({ mediaType: MEDIA_TYPE.AUDIO });
    //parse and set the value in the state
    setAssets(JSON.parse(assets));
  } 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

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •