'Relative path is not working with react-native-fs

I'm using react-native-fs library for just reading and writing files, I'm giving exact relative path while reading file but it is returning no file exists...

RNFS.exists('../../res/local_storage.txt').then(status => console.log(status)); returns false

RNFS.readFile('../../res/local_storage.txt').then( ... code ... ) returns following promise rejection.

enter image description here

here is the location of local_storage.txt...

enter image description here



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source