leecade / leecade/react-native-swiper
undefined is not an object (evaluating'_this.internals.offset[dir]')
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 ?
Android
Version
Which versions are you using:
- react-native-swiper v1.5.10?
- react-native v0.46.4
Describe
I'm developing a shopping website. On the goods description page,I used swiper. Goods description page can jump to the shopping cart page (navigator.push) and shopping cart page can jump to the goods description page too (infinite stack). The problem is that when there are more than one swiper in the stack, the code prompts "undefined is not an object" in 'updateIndex' function.

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 Android crash with react-native-swiper v1.5.10 and React Native 0.46.4 by navigating between the goods description and cart pages until multiple swipers are in the stack. Start in the updateIndex function and inspect the reported internals.offset[dir] access. Done means repeated navigation with multiple swiper instances no longer produces the undefined-object error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, react-native
- Domain
- frontend, mobile
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100