title: React native: how to get file size, mime type and extension?
body: <p>I know <a href="https://github.com/johanneslumpe/react-native-fs" rel="noreferrer">react-native-fs</a> and <a href="https://github.com/wkh237/react-native-fetch-blob" rel="noreferrer">react-native-fetch-blob</a>, but I'm missing simple helper functions like <code>getFileInfo(file)</code>.</p>
  
  <p><strong>Desired pseudo code:</strong></p>
  
  <pre><code>let fileInfo = getFileInfo('path/to/my/file.txt');
  console.log('file size: ' + fileInfo.size);
  console.log('mime type: ' + fileInfo.type);
  console.log('extension: ' + fileInfo.extension);
  </code></pre>
  
  <p>What's the proper way to get the file size, mime type and extension?</p>
  
  <p>Thanks in advance!</p>