Can I use fs in React Native?

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

Leave a Reply

Your email address will not be published. Required fields are marked *