meliorence / meliorence/react-native-snap-carousel
Error : this._callListeners is undefined
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 10.5k
- Forks
- 2.3k
- PR merge metrics
- No merged PRs in 30d
Description
Is this a bug report, a feature request, or a question?
Bug report
Have you followed the required steps before opening a bug report?
(Check the step you've followed - put an x character between the square brackets ([]).)
- I have read the guidelines regarding bug report.
- I have reviewed the documentation in its entirety, including the dedicated documentations 📚.
- I have searched for existing issues and made sure that the problem hasn't already been reported.
- I am using the latest plugin version.
- I am following the issue template closely in order to produce a useful bug report.
Have you made sure that it wasn't a React Native bug?
Yes
Is the bug specific to iOS or Android? Or can it be reproduced on both platforms?
Only try on iOS Simulator
Is the bug reproductible in a production environment (not a debug one)?
Not tried
Environment
Environment:
React: 16.13.1
React native: ~0.63.3
react-native-snap-carousel: ^3.9.1
Target Platform:
iOS (10.0)
Expected Behavior
Hi, I'm using React Native Snap Carousel for a projet and after proceed an upgrade of this project this error appear "_this.callListeners is undefined".
I didn't see anything about this error on Github issues and globaly on Google.
Whatus certain is that when I remove the call on my application work.
Can you help me please ?
This is the way that Carousel component is used :
<Carousel
ref={(c) => { this._carousel = c; }}
data={slides}
layout={'default'}
renderItem={this.renderSlide}
sliderWidth={slideWidth}
itemWidth={slideWidth}
firstItem={0}
inactiveSlideScale={1}
inactiveSlideOpacity={1}
onSnapToItem={(index) => {
!this.isCancelled && this.setState({
index_carousel : index
})
}}
/>
.
This code worked with React 0.59 and React Native Snap Carousel 3.7.5.

Thanks for your help 😄
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the reported Carousel component usage and reproduce the error on the iOS Simulator using React 16.13.1, React Native ~0.63.3, and react-native-snap-carousel ^3.9.1. Compare this behavior with the previously working React 0.59 and snap-carousel 3.7.5 versions; done means the Carousel no longer reports that _callListeners is undefined.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, react-native
- Domain
- mobile
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100