diff --git a/src/SwipableCarouselView.js b/src/SwipableCarouselView.js index 95229ce..8516aa2 100644 --- a/src/SwipableCarouselView.js +++ b/src/SwipableCarouselView.js @@ -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' @@ -16,11 +15,3 @@ export default function Carousel ({children, ...other}) { ) } - -if (process.env.NODE_ENV !== 'production') { - Carousel.propTypes = { - ...VirtualizeAutoPlaySwipeViews.propTypes, - children: PropTypes.node - } - delete Carousel.propTypes.slideRenderer -}