unable to resolve dependency tree react native (resolved)

If you ever find the error indicating you have some problem in the dependency tree of your react native app then just add --legacy-peer-deps flag

npm install react-native-fs --save --legacy-peer-deps

Hopefully this will resolve this issue :)