Babel Configuration is default from expo
module.exports = function(api) { api.cache(true); return { presets: ['babel-preset-expo'], }; };
=> Works fine in android build
=> but web bundling gives this error
Error
./node_modules/rn-sliding-up-panel/SlidingUpPanel.js 37:19
Module parse failed: Unexpected token (37:19)
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
|
| class SlidingUpPanel extends React.PureComponent {
Used in react native bare workflow.
Using this package to create sliders over maps.
Babel Configuration is default from expo
module.exports = function(api) { api.cache(true); return { presets: ['babel-preset-expo'], }; };
=> Works fine in android build
=> but web bundling gives this error
Error