title: Link non-font assets using rnpm
body: <p>There are plenty of tutorials on including font assets using rnpm. These are the steps:</p>
  
  <ol>
  <li>Put fonts in, say, <code>./assets/fonts</code></li>
  <li><p>Add the following snippet to package.json:</p>
  
  <pre><code>"rnpm": {
    "assets": [
      "./assets/fonts",
    ]
  }
  </code></pre></li>
  <li><p>run <code>react-native link</code>.</p></li>
  </ol>
  
  <p>Works well for font assets, but what about other types? I need to include a text file, but repeating the above steps for text file assets does not seem to have any effect. What am I missing? There are no mentions on the internet, so I'm not even sure this is possible at all with rnpm.</p>
  
  <p><em>EDIT: To be more specific, I added a <code>file.txt</code> to the <code>./assets/raw</code> directory and added <code>./assets/raw</code> next to <code>./assets/fonts</code> in the <code>rnpm</code> config in package.json. After running <code>react-native link</code> I expected <code>file.txt</code> to appear in the Android project assets directory (<code>/android/app/src/main/assets</code>), and in the "Copy Bundle Resources" build phase in iOS project, but it didn't happen. <code>react-native link</code> ran normally and produced no errors.</em></p>
  
  <p>My ultimate goal is to include a text file in the app bundle and have it accessible at runtime. Another option would be to wrap the text in JSON, but that way it ends up in JS bundle increasing its size by ~25%, which is probably not good. Some also recommend <code>react-native-fs</code> to read the file, but I'm not sure where to put it so that it's available for both Android and iOS. rnpm knows where to put assets for Android and iOS (and how to copy them to bundle), so using it seems to be the way to go, but I can't make it work with text assets.</p>
  
  <p>Any thoughts or suggestions?</p>