react-native-snap-carousel icon indicating copy to clipboard operation
react-native-snap-carousel copied to clipboard

Cannot read property 'array' of undefined

Open Ranjit8298 opened this issue 2 years ago • 3 comments

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

Ranjit8298 avatar May 30 '23 19:05 Ranjit8298

Same issue here

shahawi avatar Jun 27 '23 00:06 shahawi

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

patras1 avatar Jul 15 '23 17:07 patras1

Uninstall and install react native snap carousel again.It worked for me

ShreyashMs avatar Jan 15 '24 05:01 ShreyashMs