<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: elf2022</title>
    <description>The latest articles on DEV Community by elf2022 (@elf2022).</description>
    <link>https://dev.to/elf2022</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F1135662%2F9780b009-4f61-42ef-8cea-25dc01044aeb.png</url>
      <title>DEV Community: elf2022</title>
      <link>https://dev.to/elf2022</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/elf2022"/>
    <language>en</language>
    <item>
      <title>react-native-fs issue</title>
      <dc:creator>elf2022</dc:creator>
      <pubDate>Wed, 09 Aug 2023 00:13:23 +0000</pubDate>
      <link>https://dev.to/elf2022/react-native-fs-issue-1apc</link>
      <guid>https://dev.to/elf2022/react-native-fs-issue-1apc</guid>
      <description>&lt;p&gt;When I try and write to a file in react native using the react-native-fs work around (to replace fs), I run into an error. It says Cannot read property 'RNFSFileTypeRegular' of null.&lt;/p&gt;

&lt;p&gt;The full error in my terminal says "TypeError: Cannot read property 'RNFSFileTypeRegular' of null, js engine: hermes" I read somewhere that I have to change the read and write permissions in the androidmanifest.xml file: &lt;a href="https://github.com/itinance/react-native-fs/issues/1142"&gt;https://github.com/itinance/react-native-fs/issues/1142&lt;/a&gt;. Will this work? Can someone tell me how? I am using expo and can't even see that file!&lt;/p&gt;

&lt;p&gt;Here is what I am trying to accomplish. I am using this package &lt;a href="https://github.com/grimmdude/MidiWriterJS"&gt;https://github.com/grimmdude/MidiWriterJS&lt;/a&gt;. I would like to save a midi file to an android device. The following instructions &lt;a href="https://github.com/grimmdude/MidiWriterJS/issues/54"&gt;https://github.com/grimmdude/MidiWriterJS/issues/54&lt;/a&gt; only work on PC.&lt;/p&gt;

&lt;p&gt;This link is an example of a song &lt;a href="https://github.com/grimmdude/MidiWriterJS/blob/master/examples/hot-cross-buns.js"&gt;https://github.com/grimmdude/MidiWriterJS/blob/master/examples/hot-cross-buns.js&lt;/a&gt;. Can someone show me how to make this work on react native, and actually save a file callenter image description hereed "hot-cross-buns.midi" on ANDROID using REACT NATIVE?&lt;/p&gt;

&lt;p&gt;I'd appreciate it!&lt;/p&gt;

&lt;p&gt;PS: I would be willing to also use fs which is a node module and use a hack to allow it, but I ran into bugs. See &lt;a href="https://github.com/tradle/rn-nodeify"&gt;https://github.com/tradle/rn-nodeify&lt;/a&gt; or &lt;a href="https://github.com/philikon/ReactNativify"&gt;https://github.com/philikon/ReactNativify&lt;/a&gt;. I am not keen on a security problem, but if this is the way to go, please let me know. Somehow my app would not successfully load when I used nodeify, it said something about AsynchStorage being removed from react native core, someone proposed a solution which involves modifying the react native core file, but I cannot find it (just like I can't find the androidmanifest.xml file).&lt;/p&gt;

</description>
      <category>help</category>
    </item>
  </channel>
</rss>
