meliorence / meliorence/react-native-snap-carousel

Error : this._callListeners is undefined

Open
#780 3 comments 1 reaction 0 assignees View on GitHub

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 ([]).)

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.

Simulator Screen Shot - iPhone 8 - 2020-11-11 at 21 59 09

Thanks for your help 😄

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.