From 2b6b18d53ec04cb93a7c7fc53f70a4c06852704c Mon Sep 17 00:00:00 2001 From: Tim Glasgow Date: Sat, 6 Aug 2022 15:05:12 -0500 Subject: [PATCH] High score placeholder --- squarenotsquare/src/screens/HighScore.js | 46 +++++++++++++++++++----- 1 file changed, 38 insertions(+), 8 deletions(-) diff --git a/squarenotsquare/src/screens/HighScore.js b/squarenotsquare/src/screens/HighScore.js index 4ec3a80..c251e56 100644 --- a/squarenotsquare/src/screens/HighScore.js +++ b/squarenotsquare/src/screens/HighScore.js @@ -1,14 +1,44 @@ -import React from "react"; -import { Text, View } from "react-native"; -import { useState } from "react"; +import React, { useEffect } from "react"; +import { BackHandler, SafeAreaView, Text, TouchableOpacity, View } from "react-native"; +import { styles } from './styles/AppStyles'; +import Slider from "../components/Slider"; +import { useDispatch } from "react-redux"; +import {goHome} from '../redux/actions/SystemActions'; -function HighScore(props){ +function HighScore(){ + const dispatch = useDispatch(); + + useEffect(() => { + BackHandler.addEventListener('hardwareBackPress', () => {return true}); + }, []) + + function onPressMainMenu(){ + dispatch(goHome()); + } + + const now = new Date(Date.now()); return ( - - test - - ); + + + + Not Implemented + + + + + + + Main Menu + + + + + + ) } export default HighScore; \ No newline at end of file