title: How to access local files other than JSON with react-native
body: <p>I need to parse a local .csv file that I include somewhere between all the js files (like some kind of local ressource).
  I found a library that does the job > Papaparse. But it seems like it can't "download" my local file due to incompatibilities with the Javascript-Environment.</p>
  
  <p>I guess it would work if I can somehow just pass the content of my local csv file to papaparse as a string. But I can't figure out how to get the content of local csv-file inside a variable with react-native.
  Any Suggestions?</p>
  
  <p><strong>EDIT:</strong>
  I've tried it with react-native-fs. I put my csv-file under android/src/main/assets/ and try to access it with
  <code>RNFS.readDirAssets('/');</code></p>
  
  <p>-> Output is this:
  <code>08-11 14:53:14.524 17058 17202 I ReactNativeJS: [ { ctime: null,
  08-11 14:53:14.524 17058 17202 I ReactNativeJS:     mtime: Invalid Date,
  08-11 14:53:14.524 17058 17202 I ReactNativeJS:     name: 'AndroidManifest.xml',
  08-11 14:53:14.524 17058 17202 I ReactNativeJS:     path: '//AndroidManifest.xml',
  08-11 14:53:14.524 17058 17202 I ReactNativeJS:     size: 0,
  08-11 14:53:14.524 17058 17202 I ReactNativeJS:     isFile: [Function: isFile],
  08-11 14:53:14.524 17058 17202 I ReactNativeJS:     isDirectory: [Function: isDirectory] },
  08-11 14:53:14.524 17058 17202 I ReactNativeJS:   { ctime: null,
  08-11 14:53:14.524 17058 17202 I ReactNativeJS:     mtime: Invalid Date,
  08-11 14:53:14.524 17058 17202 I ReactNativeJS:     name: 'META-INF',
  08-11 14:53:14.524 17058 17202 I ReactNativeJS:     path: '//META-INF',
  08-11 14:53:14.524 17058 17202 I ReactNativeJS:     size: 0,
  08-11 14:53:14.524 17058 17202 I ReactNativeJS:     isFile: [Function: isFile],
  08-11 14:53:14.524 17058 17202 I ReactNativeJS:     isDirectory: [Function: isDirectory] },
  08-11 14:53:14.524 17058 17202 I ReactNativeJS:   { ctime: null,
  08-11 14:53:14.524 17058 17202 I ReactNativeJS:     mtime: Invalid Date,
  08-11 14:53:14.524 17058 17202 I ReactNativeJS:     name: 'assets',
  08-11 14:53:14.524 17058 17202 I ReactNativeJS:     path: '//assets',
  08-11 14:53:14.524 17058 17202 I ReactNativeJS:     size: 0,
  08-11 14:53:14.524 17058 17202 I ReactNativeJS:     isFile: [Function: isFile],
  08-11 14:53:14.524 17058 17202 I ReactNativeJS:     isDirectory: [Function: isDirectory] },
  08-11 14:53:14.524 17058 17202 I ReactNativeJS:   { ctime: null,
  08-11 14:53:14.524 17058 17202 I ReactNativeJS:     mtime: Invalid Date,
  08-11 14:53:14.524 17058 17202 I ReactNativeJS:     name: 'classes.dex',
  08-11 14:53:14.524 17058 17202 I ReactNativeJS:     path: '//classes.dex',
  08-11 14:53:14.524 17058 17202 I ReactNativeJS:     size: 0,
  08-11 14:53:14.524 17058 17202 I ReactNativeJS:     isFile: [Function: isFile],
  08-11 14:53:14.524 17058 17202 I ReactNativeJS:     isDirectory: [Function: isDirectory] },
  08-11 14:53:14.524 17058 17202 I ReactNativeJS:   { ctime: null,
  08-11 14:53:14.524 17058 17202 I ReactNativeJS:     mtime: Invalid Date,
  08-11 14:53:14.524 17058 17202 I ReactNativeJS:     name: 'lib',
  08-11 14:53:14.524 17058 17202 I ReactNativeJS:     path: '//lib',
  08-11 14:53:14.524 17058 17202 I ReactNativeJS:     size: 0,
  08-11 14:53:14.524 17058 17202 I ReactNativeJS:     isFile: [Function: isFile],
  08-11 14:53:14.524 17058 17202 I ReactNativeJS:     isDirectory: [Function: isDirectory] },
  08-11 14:53:14.524 17058 17202 I ReactNativeJS:   { ctime: null,
  08-11 14:53:14.524 17058 17202 I ReactNativeJS:     mtime: Invalid Date,
  08-11 14:53:14.524 17058 17202 I ReactNativeJS:     name: 'res',
  08-11 14:53:14.524 17058 17202 I ReactNativeJS:     path: '//res',
  08-11 14:53:14.524 17058 17202 I ReactNativeJS:     size: 0,
  08-11 14:53:14.524 17058 17202 I ReactNativeJS:     isFile: [Function: isFile],
  08-11 14:53:14.524 17058 17202 I ReactNativeJS:     isDirectory: [Function: isDirectory] },
  08-11 14:53:14.524 17058 17202 I ReactNativeJS:   { ctime: null,
  08-11 14:53:14.524 17058 17202 I ReactNativeJS:     mtime: Invalid Date,
  08-11 14:53:14.524 17058 17202 I ReactNativeJS:     name: 'resources.arsc',
  08-11 14:53:14.524 17058 17202 I ReactNativeJS:     path: '//resources.arsc',
  08-11 14:53:14.524 17058 17202 I ReactNativeJS:     size: 0,
  08-11 14:53:14.524 17058 17202 I ReactNativeJS:     isFile: [Function: isFile],
  08-11 14:53:14.524 17058 17202 I ReactNativeJS:     isDirectory: [Function: isDirectory] } ]</code></p>
  
  <p>It seems like my assets folder is always empty.</p>