|
@ -1,11 +1,15 @@ |
|
|
import React from "react"; |
|
|
import React, { useEffect } from "react"; |
|
|
import { Text, View } from "react-native"; |
|
|
import { BackHandler, Text, View } from "react-native"; |
|
|
import { useState } from "react"; |
|
|
import { useState } from "react"; |
|
|
import { styles } from './styles/AppStyles'; |
|
|
import { styles } from './styles/AppStyles'; |
|
|
import { TouchableOpacity } from "react-native-gesture-handler"; |
|
|
import { TouchableOpacity } from "react-native-gesture-handler"; |
|
|
|
|
|
|
|
|
function Home(props){ |
|
|
function Home(props){ |
|
|
|
|
|
|
|
|
|
|
|
useEffect(() => { |
|
|
|
|
|
BackHandler.addEventListener('hardwareBackPress', () => {return true}); |
|
|
|
|
|
}, []) |
|
|
|
|
|
|
|
|
return ( |
|
|
return ( |
|
|
<View style={[styles.flex]}> |
|
|
<View style={[styles.flex]}> |
|
|
<View style={[styles.flexHalf, styles.spaceAround]}> |
|
|
<View style={[styles.flexHalf, styles.spaceAround]}> |
|
|