title: How to load local text file into string variable in ReactNative Project?
body: <p>In my ReactNative project there are some static text files which i'd like to load into a string variable. Like this way:</p>
  
  <pre><code>var content = loadPlainTextFile("resources/tags.txt");
  var tags = content.split("\n");
  </code></pre>
  
  <p>I tried require in the same way i'm requiring javascript files, but it doesn't work because react native gives exception "Unable to resolve module ./data/tags.txt".</p>
  
  <pre><code>var customData = require('./data/tags.txt');
  </code></pre>
  
  <p>I guess that require() is not able to handle plain text files?</p>
  
  <p>How to do correctly?</p>