title: Optional chaining operator support in VSCode
body: <p>React Native 0.56 provides native support of <code>Optional Chaining Operator</code> i.e <code>?.</code></p>
  
  <p>However the latest stable release of VS Code can not recognize this syntax and throw a TypeScript validation error:</p>
  
  <p><code>[ts] Expression expected.</code></p>
  
  <p>while no complie-time or eslint error was thrown.</p>
  
  <p>How can I do to fix it?</p>
  
  <hr>
  
  <p>Update on 2019/12/11:</p>
  
  <p>Optional chaining is offically supported by TypeScript since 3.7! </p>
  
  <p>If you still meet this error, probably the TypeScript lib shipped with your VSCode is &lt; 3.7.</p>
  
  <p>You can fix it simply by installing the latest version of typescript (>= 3.7) to your workspace. (by npm or yarn as dev deps)</p>
  
  <p>Then open the command palette, type <code>tstv</code>, and switch the <em>TypeScript version used for JS and TS features</em> from <strong>VS Code's Version</strong> to <strong>Workspace's Version</strong> (make sure it's >= 3.7) and voila!</p>
  
  <p>This is definitely an awesome feature, thanks your all and happy hacking!</p>