Android
Which versions are you using:
Going back to ViewPager for now, and I realize this is pre-release. Thanks!!
if (offset[dir] === this.internals.offset[dir]) {
newState.offset = { x: 0, y: 0 }
newState.offset[dir] = offset[dir] + 1
this.setState(newState, () => {
this.setState({ offset: offset }, cb)
})
} else {
newState.offset = offset
this.setState(newState, cb)
}
} else {
this.setState(newState, cb)
}
Use this code. In bold the things you need to replace
找到const diff = offset[dir] - this.internals.offset[dir] 修改成
const diff = offset[dir] - (this.internals.offset[dir]||0) 在我的模拟器上是可以的
@leecade @ArrayZoneYour any clue?
Facing same issue on android.