1 changed files with 38 additions and 8 deletions
@ -1,14 +1,44 @@ |
|||||
import React from "react"; |
import React, { useEffect } from "react"; |
||||
import { Text, View } from "react-native"; |
import { BackHandler, SafeAreaView, Text, TouchableOpacity, View } from "react-native"; |
||||
import { useState } from "react"; |
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 ( |
return ( |
||||
<View> |
<SafeAreaView style={[styles.flex]}> |
||||
<Text style={{color: 'black'}}>test</Text> |
<View style={[styles.flex, styles.spaceAround]}> |
||||
</View> |
<Text style={[styles.headerTitleFont, styles.centeredText, styles.darkText]}> |
||||
); |
Not Implemented |
||||
|
</Text> |
||||
|
</View> |
||||
|
<View style={[styles.flex, styles.centeredItems, styles.spaceEvenly]}> |
||||
|
<Slider origin={400} duration={750} delay={0}> |
||||
|
<TouchableOpacity |
||||
|
onPress={onPressMainMenu} |
||||
|
style={[styles.centeredJustify, styles.darkGreen, styles.menuButton, styles.dropShadow]} |
||||
|
> |
||||
|
<Text style={[styles.lightText, styles.headerTitleFont, styles.boldText, styles.centeredText]}> |
||||
|
Main Menu |
||||
|
</Text> |
||||
|
</TouchableOpacity> |
||||
|
</Slider> |
||||
|
</View> |
||||
|
</SafeAreaView> |
||||
|
) |
||||
} |
} |
||||
|
|
||||
export default HighScore; |
export default HighScore; |
Loading…
Reference in new issue