title: How to deal with node modules using ES6/ES7 language features?
body: <p>In a <code>create-react-native-app</code> project, I’m having trouble loading npm modules that use ES6/ES7 language features. 
   In fact, I posted a similar question but deleted it after hearing that published npm modules just <strong>shouldn’t use</strong> ES6/ES7 language features, so the problem was with the modules I was using.  But now I’m having trouble with a mainstream module, <code>React Navigation</code>.  In this file, for example, you’ll see the class properties that give me the error below: <a href="https://github.com/react-navigation/react-navigation/blob/v1.5.8/src/views/TabView/TabView.js" rel="nofollow noreferrer">https://github.com/react-navigation/react-navigation/blob/v1.5.8/src/views/TabView/TabView.js</a></p>
  
  <p>Here's the error I get:</p>
  
  <p><strong>Failed to compile</strong></p>
  
  <pre><code>./node_modules/react-navigation/src/views/TabView/TabView.js
  Module parse failed: Unexpected token (10:22)
  You may need an appropriate loader to handle this file type.
  | 
  | class TabView extends React.PureComponent {
  |   static defaultProps = {
  |     lazy: true,
  |     removedClippedSubviews: true,
  </code></pre>
  
  <p>What's the best way to handle <code>node_modules</code> with new language features?</p>