I am getting this error as soon as I add this line to my App.js in react-native project.
import * as RNFS from 'react-native-fs';
null is not an object(evaluating 'RNFSMANAGER.RNFSFileTypeRegular')
I am attaching the screens that I get. First I get :
then it quickly converts into :
I also tried to link react-native fs using:
I don't know if i have to do this but when I try to do yarn add react-native-fs
.
Though I was able to do :
Install react-native-fs : npm install --save react-native-fs
Then restart project : react-native run-android
I had the same issue and here's how I resolved.
To see the details of the issue, open the workspace file in iOS and try to run the simulator. I'll pop up an error.
For me, an embedded library was missing.
Not sure WHY but it sometimes happen when you install other dependencies using npm or yarn.
So, I just ran
npm install
Then
cd ios
pod install
And that was it for my case.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With