You’re not able to use node’s fs because it is part of nodejs environment . As you surely know your application code is not running on nodejs but rather directly on your smartphone (besides debug mode but even there you cannot use node’s fs package).
Read moreHow do you get file from path in React Native?
“get file from path react native” Code Answer
Read moreHow do I open React Native in browser?
Running in the Browser
Read moreHow do I run React Native project?
React Native – Environment Setup
Read more