We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 1ca92e5 + 658923f commit 6333668Copy full SHA for 6333668
2 files changed
examples/android/gradlew
100755
100644
src/index.js
@@ -394,6 +394,8 @@ export default class extends Component {
394
updateIndex = (offset, dir, cb) => {
395
const state = this.state
396
let index = state.index
397
+ if (!this.internals.offset) // Android not setting this onLayout first? https://github.com/leecade/react-native-swiper/issues/582
398
+ this.internals.offset = {}
399
const diff = offset[dir] - this.internals.offset[dir]
400
const step = dir === 'x' ? state.width : state.height
401
let loopJump = false
0 commit comments