Caleb A.

asked • 08/08/23

react-native-fs

Hi, I'd like to write to a file in react native and am using an alternative to fs known as react-native-fs but get this error:


TypeError: Cannot read property 'RNFSFileTypeRegular' of null, js engine: hermes

The goal is to make a midi file; I am using midi-writer-js and have code that works except when it comes to fs (file system) https://github.com/grimmdude/MidiWriterJS


I also tried using nodeify to allow node modules (so regular fs) but this introduced bugs https://github.com/tradle/rn-nodeify.


If you could help it could be awesome!

1 Expert Answer

By:

Matthew K. answered • 08/13/23

Tutor
4.8 (36)

Math and CS Tutor who works on problem solving and thinking critically

Still looking for help? Get the right answer, fast.

Ask a question for free

Get a free answer to a quick problem.
Most questions answered within 4 hours.

OR

Find an Online Tutor Now

Choose an expert and meet online. No packages or subscriptions, pay only for the time you need.