title: How to import a markdown file in a typescript react-native project?
body: <p>I have tried to import a markdown file into my typescript react-native project in 2 ways.</p>
  
  <pre><code>import * as readme from "./sample.md"
  </code></pre>
  
  <pre><code>import readme from "./sample.md"  
  </code></pre>
  
  <p>Both didn't work. So I found <a href="https://stackoverflow.com/questions/44678315/how-to-import-markdown-md-file-in-typescript">a similar issue reported previously</a> and mentioned about making a typings.d.ts file for declaring modules, and i've tried this as well but it still doesn't work.</p>
  
  <pre><code>declare module "*!txt" {
      const value: any;
      export default value;
  }
  
  declare module "*.md" {
      const value: any;
      export default value;
  }
  
  </code></pre>
  
  <p>EDIT:
  There is no import error on Vscode but on the react-native app itself, it says that it cannot find module './sample.md' as it is only looking for (.native|.ios|.json|.ts etc) files.</p>
  
  <p>Any help would be appreciated, been stuck on this for far too long.
  Thank you!</p>