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

Cannot read property 'array' of undefined #983

Open
Ranjit8298 opened this issue May 30, 2023 · 3 comments
Open

Cannot read property 'array' of undefined #983

Ranjit8298 opened this issue May 30, 2023 · 3 comments

Comments

@Ranjit8298
Copy link

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

@shahawi
Copy link

shahawi commented Jun 27, 2023

Same issue here

@patras1
Copy link

patras1 commented Jul 15, 2023

Me too getting the some error and could not find the reason, Can someone help please?

@ShreyashMs
Copy link

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
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants