title: Download txt file from text in React Native
body: <p>I'm trying to Download txt file from a text but that function is not working fine.</p>
  <p><strong>Txt Function</strong></p>
  <pre><code>import RNFS from 'react-native-fs';
  
    const txtDownload = () =&gt; {
      let path = `${RNFS.DocumentDirectoryPath}/${filename}.txt`;
      RNFS.writeFile(path, `Here is text`, 'utf8').then((res) =&gt; {
        Toast('File saved successfully');
      }
      ).catch((err) =&gt; {
        Toast(err);
      });
    }
  </code></pre>
  <p>It returns File saved successfully but I can't find file</p>