diff --git a/index.js b/index.js index a47d574..9451164 100644 --- a/index.js +++ b/index.js @@ -6,9 +6,9 @@ import { ScrollView, TouchableOpacity, View, - ViewPropTypes, TouchableWithoutFeedback, } from 'react-native'; +import { ViewPropTypes, TextPropTypes } from 'deprecated-react-native-prop-types'; import PropTypes from 'prop-types'; import isEqual from 'lodash.isequal'; @@ -33,20 +33,20 @@ export default class Carousel extends Component { contentContainerStyle: viewPropTypes.style, pageInfo: PropTypes.bool, pageInfoBackgroundColor: PropTypes.string, - pageInfoTextStyle: Text.propTypes.style, + pageInfoTextStyle: TextPropTypes.style, pageInfoBottomContainerStyle: viewPropTypes.style, pageInfoTextSeparator: PropTypes.string, bullets: PropTypes.bool, - bulletsContainerStyle: Text.propTypes.style, - bulletStyle: Text.propTypes.style, + bulletsContainerStyle: TextPropTypes.style, + bulletStyle: TextPropTypes.style, arrows: PropTypes.bool, - arrowsContainerStyle: Text.propTypes.style, - arrowStyle: Text.propTypes.style, - leftArrowStyle: Text.propTypes.style, - rightArrowStyle: Text.propTypes.style, + arrowsContainerStyle: TextPropTypes.style, + arrowStyle: TextPropTypes.style, + leftArrowStyle: TextPropTypes.style, + rightArrowStyle: TextPropTypes.style, leftArrowText: PropTypes.string, rightArrowText: PropTypes.string, - chosenBulletStyle: Text.propTypes.style, + chosenBulletStyle: TextPropTypes.style, onAnimateNextPage: PropTypes.func, onPageBeingChanged: PropTypes.func, swipe: PropTypes.bool, diff --git a/package.json b/package.json index 55e94f1..d6e4ac2 100644 --- a/package.json +++ b/package.json @@ -48,6 +48,7 @@ "react-test-renderer": "^16.2.0" }, "dependencies": { + "deprecated-react-native-prop-types": "^4.0.0", "lodash.isequal": "^4.5.0", "prop-types": "^15.6.1" },