title: React Native App using native-base and react-native-web fails to compile on web
body: <p>I'm using <strong>react-native-web</strong> and <strong>native-base</strong> to build an app (bootstrapped by <strong>CRA</strong>-typescript template) and the following error is thrown on the compilation.
  I have followed the exact same steps mentioned in the <a href="https://docs.nativebase.io/docs/GetStarted.html" rel="nofollow noreferrer">official docs of native-base setup with web</a>.<br>I would prefer <em>not to downgrade</em> the version of native-base/react-native-web.
  <br><strong>Error Description:</strong><br></p>
  <pre><code>    ./node_modules/@codler/react-native-keyboard-aware-scroll-view/lib/KeyboardAwareHOC.js
  SyntaxError: \nativebase-app\node_modules\@codler\react-native-keyboard-aware-scroll-view\lib\KeyboardAwareHOC.js: Unexpected token (13:12)
  
    11 | } from 'react-native'
    12 | import { isIphoneX } from 'react-native-iphone-x-helper'
  &gt; 13 | import type { KeyboardAwareInterface } from './KeyboardAwareInterface'
       |             ^
    14 |
    15 | const _KAM_DEFAULT_TAB_BAR_HEIGHT: number = isIphoneX() ? 83 : 49
    16 | const _KAM_KEYBOARD_OPENING_TIME: number = 250
  </code></pre>
  <p><br><strong>My package.json</strong><br></p>
  <pre><code>    {
    &quot;name&quot;: &quot;nativebase-app&quot;,
    &quot;version&quot;: &quot;0.1.0&quot;,
    &quot;private&quot;: true,
    &quot;dependencies&quot;: {
      &quot;@babel/plugin-proposal-class-properties&quot;: &quot;^7.13.0&quot;,
      &quot;@testing-library/jest-dom&quot;: &quot;^5.11.4&quot;,
      &quot;@testing-library/react&quot;: &quot;^11.1.0&quot;,
      &quot;@testing-library/user-event&quot;: &quot;^12.1.10&quot;,
      &quot;@types/jest&quot;: &quot;^26.0.15&quot;,
      &quot;@types/node&quot;: &quot;^12.0.0&quot;,
      &quot;@types/react&quot;: &quot;^17.0.0&quot;,
      &quot;@types/react-dom&quot;: &quot;^17.0.0&quot;,
      &quot;customize-cra&quot;: &quot;^1.0.0&quot;,
      &quot;native-base&quot;: &quot;^2.15.2&quot;,
      &quot;react&quot;: &quot;^17.0.1&quot;,
      &quot;react-app-rewired&quot;: &quot;^2.1.8&quot;,
      &quot;react-art&quot;: &quot;^17.0.1&quot;,
      &quot;react-dom&quot;: &quot;^17.0.1&quot;,
      &quot;react-native-keyboard-aware-scroll-view&quot;: &quot;^0.9.3&quot;,
      &quot;react-native-vector-icons&quot;: &quot;^8.1.0&quot;,
      &quot;react-native-web&quot;: &quot;^0.15.0&quot;,
      &quot;react-scripts&quot;: &quot;4.0.3&quot;,
      &quot;typescript&quot;: &quot;^4.1.2&quot;,
      &quot;web-vitals&quot;: &quot;^1.0.1&quot;
    },
    &quot;scripts&quot;: {
      &quot;start&quot;: &quot;react-app-rewired start&quot;,
      &quot;build&quot;: &quot;react-app-rewired build&quot;,
      &quot;test&quot;: &quot;react-app-rewired test&quot;,
      &quot;eject&quot;: &quot;react-scripts eject&quot;
    },
    ...rest config
  }
  </code></pre>
  <p><br><strong>config-overrides.js</strong><br></p>
  <pre><code>    const path = require('path');
  const {
    override,
    addWebpackAlias,
    babelInclude,
    addBabelPlugins
  } = require('customize-cra');
  
  module.exports = override(
    addWebpackAlias({
      &quot;react-native/Libraries/Renderer/shims/ReactNativePropRegistry&quot;: &quot;react-native-web/dist/modules/ReactNativePropRegistry&quot;,
      &quot;react-native&quot;: &quot;react-native-web&quot;
    }),
    babelInclude([
      path.resolve('src'),
      path.resolve('node_modules/native-base-shoutem-theme'),
      path.resolve('node_modules/react-navigation'),
      path.resolve('node_modules/react-native-easy-grid'),
      path.resolve('node_modules/react-native-drawer'),
      path.resolve('node_modules/react-native-safe-area-view'),
      path.resolve('node_modules/react-native-vector-icons'),
      path.resolve('node_modules/react-native-keyboard-aware-scroll-view'),
      path.resolve('node_modules/react-native-web'),
      path.resolve('node_modules/react-native-tab-view'),
      path.resolve('node_modules/static-container'),
    ]),
    addBabelPlugins(
      &quot;@babel/plugin-proposal-class-properties&quot;
    ),
  );
  </code></pre>