Skip to content

Remedy a mistake when using 'react-native-looped-carousel'  #94

@VenusPP

Description

@VenusPP

(Error 'undefined is not an object _react.proptypes.bool' )
react-native-looped-carousel/index.js
// code
import PropTypes from 'prop-types';
export default class Carousel extends Component {
static propTypes = {
children: PropTypes.node.isRequired,
autoplay: PropTypes.bool,
delay: PropTypes.number,
currentPage: PropTypes.number,
style: View.propTypes.style,
pageStyle: View.propTypes.style,
contentContainerStyle: View.propTypes.style,
pageInfo: PropTypes.bool,
pageInfoBackgroundColor: PropTypes.string,
pageInfoTextStyle: Text.propTypes.style,
pageInfoBottomContainerStyle: View.propTypes.style,
pageInfoTextSeparator: PropTypes.string,
bullets: PropTypes.bool,
bulletsContainerStyle: Text.propTypes.style,
bulletStyle: Text.propTypes.style,
arrows: PropTypes.bool,
arrowsContainerStyle: Text.propTypes.style,
arrowstyle: Text.propTypes.style,
leftArrowText: PropTypes.oneOfType([
PropTypes.string,
PropTypes.element,
]),
rightArrowText: PropTypes.oneOfType([
PropTypes.string,
PropTypes.element,
]),
chosenBulletStyle: Text.propTypes.style,
onAnimateNextPage: PropTypes.func,
swipe: PropTypes.bool,
};

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions