octopitus / rn-sliding-up-panel

Draggable sliding up panel implemented in React Native https://octopitus.github.io/rn-sliding-up-panel/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

rn-sliding-up-panel not showing causin javascript bundling fail when opening web

naveedmm opened this issue · comments

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

./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 {

static propTypes = {
| height: PropTypes.number,
| animatedValue: PropTypes.instanceOf(Animated.Value),