Skip to content

Commit

Permalink
fix(carousel): Animated.View.propTypes will cause crash in release mode
Browse files Browse the repository at this point in the history
  • Loading branch information
panpanhan200 committed Jun 10, 2018
1 parent c8d4132 commit b62ad63
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/carousel/Carousel.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ export default class Carousel extends Component {
loopClonesPerSide: PropTypes.number,
scrollInterpolator: PropTypes.func,
slideInterpolatedStyle: PropTypes.func,
slideStyle: Animated.View.propTypes.style,
slideStyle: ViewPropTypes ? ViewPropTypes.style : View.propTypes.style,
shouldOptimizeUpdates: PropTypes.bool,
swipeThreshold: PropTypes.number,
useScrollView: PropTypes.bool,
Expand Down

0 comments on commit b62ad63

Please sign in to comment.