You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
454 B
22 lines
454 B
import { useNavigation } from '@react-navigation/native'
|
|
import { FC, useContext } from 'react'
|
|
import { Button, Text, View } from 'react-native'
|
|
import { AuthContext } from './AuthContext'
|
|
|
|
interface Props {
|
|
}
|
|
|
|
export const LogOut:FC <Props> = () => {
|
|
|
|
const { logOut } = useContext(AuthContext);
|
|
const navigation = useNavigation();
|
|
return (
|
|
<View>
|
|
<Text>Salir</Text>
|
|
<Button
|
|
title='Adios...'
|
|
onPress={logOut}
|
|
/>
|
|
</View>
|
|
)
|
|
} |