Commit 58a0fc00 authored by norhalimah's avatar norhalimah

BackHandler

parent 12a0c461
......@@ -619,7 +619,7 @@ class Quiz extends React.Component {
async componentDidMount() {
//this.removeArray();
//BackHandler.addEventListener('hardwareBackPress', this.homeExit);
BackHandler.addEventListener('hardwareBackPress', this.homeExit);
Orientation.lockToLandscape();
this.displayData();
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment