title: TypeScript Error: Ts 8006, Ts 8010 when build React Native App?
body: <p>'import type' declarations can only be used in TypeScript files.
  Type annotations can only be used in TypeScript files.
  Type annotations can only be used in TypeScript files.</p>
  <p><a href="https://i.stack.imgur.com/fwkSW.png" rel="nofollow noreferrer">Click &quot;image description&quot; here</a></p>