Open Ranjit8298 opened 1 year ago
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
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
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