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."