Closed quickrworld closed 6 years ago
In order to achieve proper usability experience, you would need to pop the current route as Deck View is already on the navigation stack. The following snippet should the trick.
quizHome = () => { // ... this.props.navigation.goBack() }
Existing code:
quizHome = () => { const { viewing } = this.props.decks this.props.initAnswering(viewing) this.setState({ showAnswer: false }) this.setState({ quizComplete: false }) this.props.navigation.navigate('QuizStart') }
Completed and tested
In order to achieve proper usability experience, you would need to pop the current route as Deck View is already on the navigation stack. The following snippet should the trick.
Existing code: