Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
VenusPP opened this issue Dec 1, 2017 · 0 comments
Open

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

VenusPP opened this issue Dec 1, 2017 · 0 comments

Comments

@VenusPP
Copy link

VenusPP commented Dec 1, 2017

(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,
};

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant