Perch Hakobyan
Perch Hakobyan

Reputation: 57

Cannot use RNFS from react-native-fs

I am receiving this errors after importing RNFS from react-native-fs.

ERROR Invariant Violation: new NativeEventEmitter() requires a non-null argument., js engine: hermes

ERROR Invariant Violation: "ProjectName" has not been registered. This can happen if:

I installed and tried to import RNFS from react-native-fs for creating files and saving some data in it.

Upvotes: 0

Views: 935

Answers (1)

Raj Parmar
Raj Parmar

Reputation: 178

make sure you import library like that "import RNFS from 'react-native-fs'";

Upvotes: 0

Related Questions