|
|
@ -1,11 +1,27 @@ |
|
|
|
import React from "react"; |
|
|
|
import React, { useContext } from "react"; |
|
|
|
import { Text, Button } from "react-native"; |
|
|
|
import Screen from "../components/Screen"; |
|
|
|
import InDevelopment from "../components/InDevelopment"; |
|
|
|
import { AuthContext } from "../auth/context"; |
|
|
|
|
|
|
|
function AccountScreen(props) { |
|
|
|
const { user, setUser } = useContext(AuthContext); |
|
|
|
|
|
|
|
return ( |
|
|
|
<Screen> |
|
|
|
<InDevelopment /> |
|
|
|
<Screen |
|
|
|
style={{ |
|
|
|
padding: 10, |
|
|
|
}} |
|
|
|
> |
|
|
|
<Text>{user.name}</Text> |
|
|
|
<Text>{user.email}</Text> |
|
|
|
<Button |
|
|
|
style={{ paddingTop: 10 }} |
|
|
|
title="Logout" |
|
|
|
onPress={() => setUser(null)} |
|
|
|
/> |
|
|
|
|
|
|
|
{/* <InDevelopment /> */} |
|
|
|
</Screen> |
|
|
|
); |
|
|
|
} |
|
|
|