Reputation: 57
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:
AppRegistry.registerComponent
wasn't called., js engine: hermesI installed and tried to import RNFS from react-native-fs for creating files and saving some data in it.
Upvotes: 0
Views: 935
Reputation: 178
make sure you import library like that "import RNFS from 'react-native-fs'";
Upvotes: 0