I want to access file system and show video or images in my component in react native

31 views Asked by At
 const getdata = async () => {
    const downloadDirPath = `${RNFS.ExternalStorageDirectoryPath}/Download`;
    console.log(downloadDirPath)
    RNFS.readDir(downloadDirPath)
     .then((result) => {
       // Filter for image files
       console.log('ddddd',result.isFile());
       setImages(result); // Update state with image URIs
    })
  }

"This is my code and I am getting a folder with this code but not files. I want to access files like images, videos, pdf."

0

There are 0 answers