-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
Cannot read property 'array' of undefined #983
Comments
Same issue here |
Me too getting the some error and could not find the reason, Can someone help please? |
Uninstall and install react native snap carousel again.It worked for me |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hill @ALL,
Please Help me, when I am using this getting the given error.
Cannot read property 'array' of undefined?
sample code:
<Carousel
ref={ref}
layout={'default'}
scrollEnabled={true}
showsVerticalScrollIndicator={false}
loop={true}
data={carouselData}
renderItem={renderItem}
sliderWidth={100}
itemWidth={100}
firstItem={0}
itemHeight={40}
onSnapToItem={index => setIndex(index)}
/>
const carouselData = [
{id: 1, name: 'Test'},
{id: 2, name: 'Series'},
{id: 3, name: 'Cont'},
];
Thanks
The text was updated successfully, but these errors were encountered: