diff --git a/squarenotsquare/src/screens/Home.js b/squarenotsquare/src/screens/Home.js index ba59372..8e825f6 100644 --- a/squarenotsquare/src/screens/Home.js +++ b/squarenotsquare/src/screens/Home.js @@ -1,11 +1,15 @@ -import React from "react"; -import { Text, View } from "react-native"; +import React, { useEffect } from "react"; +import { BackHandler, Text, View } from "react-native"; import { useState } from "react"; import { styles } from './styles/AppStyles'; import { TouchableOpacity } from "react-native-gesture-handler"; function Home(props){ + useEffect(() => { + BackHandler.addEventListener('hardwareBackPress', () => {return true}); + }, []) + return (