Skip to content

Commit

Permalink
Drop weird props from carousel view.
Browse files Browse the repository at this point in the history
  • Loading branch information
leMaik committed Apr 6, 2018
1 parent a21c593 commit ba4ce17
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions src/SwipableCarouselView.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import React from 'react'
import PropTypes from 'prop-types'
import autoPlay from 'react-swipeable-views-utils/lib/autoPlay'
import virtualize from 'react-swipeable-views-utils/lib/virtualize'
import bindKeyboard from 'react-swipeable-views-utils/lib/bindKeyboard'
Expand All @@ -16,11 +15,3 @@ export default function Carousel ({children, ...other}) {
<VirtualizeAutoPlaySwipeViews slideRenderer={carouselSlideRenderer(children)} {...other} />
)
}

if (process.env.NODE_ENV !== 'production') {
Carousel.propTypes = {
...VirtualizeAutoPlaySwipeViews.propTypes,
children: PropTypes.node
}
delete Carousel.propTypes.slideRenderer
}

0 comments on commit ba4ce17

Please sign in to comment.