leecade / leecade/react-native-swiper
Exception thrown in 1.5.13
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 10.5k
- Forks
- 2.3k
- PR merge metrics
- No merged PRs in 30d
Description
Which OS ?
MacOs / android
Version
Which versions are you using:
- react-native-swiper v1.5.13
- react-native v0.47.1
To help us, please fork this component, modify one example in examples folder to reproduce your issue and include link here.
Cannot read property 'x' of undefined
_class._this.updateIndex
index.js:398:53
_class._this.onScrollEnd
index.js:363:9
<unknown>
index.js:480:13
<unknown>
JSTimers.js:262:17
_callTimer
JSTimers.js:143:6
Object.callImmediatesPass
JSTimers.js:443:8
Object.callImmediates
JSTimers.js:459:20
MessageQueue.__callImmediates
MessageQueue.js:244:13
<unknown>
MessageQueue.js:128:11
MessageQueue.__guard
MessageQueue.js:231:6
running swiper with
<Swiper
autoplay
autoplayTimeout={5}
onMomentumScrollEnd={this.handleScrollEnd}
renderPagination={this.pagination}
showsButtons={false}
style={styles.swiperContainer}
>
{renderSlides(this.state.slides)}
</Swiper>
Had to downgrade to 1.5.3
It happens when demote debugging is enabled (if that is any help)
Contributor guide
No contributing guide indexed for this repository
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
Reproduce the crash in an example under react-native-swiper 1.5.13 with React Native 0.47.1 and the shown Swiper props. Start at index.js lines 363, 398, and 480, especially onScrollEnd and updateIndex, then compare behavior with version 1.5.3. Done means the example no longer throws when remote debugging is enabled.
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
- 30/100