I\'m setting up webpack to my react project using yarn and this error appears:
ERROR in ./src/app.js 67:6 Module parse failed: Unexpected token (67:6) Y
web Failed to compile.
/KeyboardAwareHOC.js 13:12
Module parse failed: Unexpected token (13:12)
You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See https://webpack.js.org/concepts#loaders 3
| } from ‘react-native’
| import { isIphoneX } from ‘react-native-iphone-x-helper’
import type { KeyboardAwareInterface } from ‘./KeyboardAwareInterface’
|
| const _KAM_DEFAULT_TAB_BAR_HEIGHT: number = isIphoneX() ? 83 : 49
install the below package and restart your expo package.
https://www.npmjs.com/package/@codler/react-native-keyboard-aware-scroll-view