octopitus / rn-sliding-up-panel

Draggable sliding up panel implemented in React Native https://octopitus.github.io/rn-sliding-up-panel/
MIT License
929 stars 157 forks source link

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

Open naveedmm opened 2 years ago

naveedmm commented 2 years ago

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),