diff --git a/App/Containers/OnboardingScreen/index.tsx b/App/Containers/OnboardingScreen/index.tsx index ca89a1485..da4cd598f 100644 --- a/App/Containers/OnboardingScreen/index.tsx +++ b/App/Containers/OnboardingScreen/index.tsx @@ -79,18 +79,15 @@ class OnboardingScreen extends React.Component { 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') @@ -186,7 +183,6 @@ class OnboardingScreen extends React.Component { style={[CONTAINER]} containerStyle={{ marginBottom: MARGIN_SMALL }} indicatorColor={COLOR_BRAND_PINK} - onScrollEnd={this.onScrollEnd} startPage={this.state.currentPage} scrollEnabled={false} >