I am trying to check the existence of an image in my mobile storage in my react native app. But even if the file is present it is returning false to me everytime. Am I missing something?Thanks in advance.
This is my imagepath
file:///var/mobile/Containers/Data/Application/4B92ACDC-8DD1-4713-A841-CAFEBD180525/tmp/FB1923E6-A008-4B68-8B8D-6415F247EF59.jpg
Code
RNFS.exists(imagepath).then((val)=>{
if(val){
console.log("Exists");
}else{
console.log("Does not exits");
}
}).catch((error)=>{
console.log(error);
})