Skip to content
This repository has been archived by the owner on Mar 12, 2020. It is now read-only.

Commit

Permalink
Merge pull request #894 from textileio/andrew/blind-fix
Browse files Browse the repository at this point in the history
remove scroll finish callback
  • Loading branch information
andrewxhill authored Feb 1, 2019
2 parents 64596ce + 68f9840 commit 6a2b14b
Showing 1 changed file with 6 additions and 10 deletions.
16 changes: 6 additions & 10 deletions App/Containers/OnboardingScreen/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -79,18 +79,15 @@ class OnboardingScreen extends React.Component<Props, State> {
this.setState({blockNext: true})
this.pages.scrollToPage(this.state.currentPage + 1)
setTimeout(() => {
this.setState({blockNext: false})
}, 500)
this.setState({
blockNext: false,
showArrow: this.showArrowForIndex(this.state.currentPage + 1),
currentPage: this.state.currentPage + 1
})
}, 350)
}
}

onScrollEnd = (index: number) => {
this.setState({
showArrow: this.showArrowForIndex(index),
currentPage: index
})
}

complete = () => {
this.props.complete()
this.props.navigation.navigate('StatusCheck')
Expand Down Expand Up @@ -186,7 +183,6 @@ class OnboardingScreen extends React.Component<Props, State> {
style={[CONTAINER]}
containerStyle={{ marginBottom: MARGIN_SMALL }}
indicatorColor={COLOR_BRAND_PINK}
onScrollEnd={this.onScrollEnd}
startPage={this.state.currentPage}
scrollEnabled={false}
>
Expand Down

0 comments on commit 6a2b14b

Please sign in to comment.