Trying to set up react-native-fs in my project. Followed the readme in exact same way. But on starting up gives me the following error. Could not find any such problem that was reported before.

Something to do with node_modules?
delete node_modules folder and hit npm install will fix it
Edit: delete build directory inside ios folder too
Are you sure you did the react-native link react-native-fs step when adding this to your project? I was getting this same error as well until I looked back at that step in the docs and realized I forgot to do that.
add import com.rnfs.RNFSPackage; and new RNFSPackage() in MainApplication.java in your project
@AhmedHashemNTS I already tried that, still, fails.
@SirNeuman Yes, I already ran the linking part. But it acts like as if the linking never happened. Totally clueless. have been searching all over the internet for weeks now.
@liujett I'm running the ios part alone now.
any update?
Hi, just run the react-native run-android first before u reload the js because it contains native modules that was not installed yet..
Closed due to inactivity. Basically it is a setup issue. Please follow the installation-section in README wisely.
Since the README makes it sound like you could do one of the three options for iOS (Adding automatically, adding with Cocoapods, adding manually), I started debugging problems with using the first two options instead of trying all three. Finally I tried the manual setup and that worked when nothing else did.
you can exit your simulator , and run : react-native run-ios
It only worked once I followed manually adding steps from instructions.
Same problem. for Android
@itinance A poorly written README leads to these problems
@arthurpankiewicz do you have any suggestions how to describe it better? in my oppinion everything was said, but since i am familiar with native iOS and android development, many steps happen automatically in my mind :)
Please feel free at any time to submit a pullrequest with installation instructions, that are more suitable for beginners.
@itinance The iOS instructions read as if you could do any of the following options - I think it should be made clear that they are all required
Most helpful comment
Are you sure you did the
react-native link react-native-fsstep when adding this to your project? I was getting this same error as well until I looked back at that step in the docs and realized I forgot to do that.