Files
tattletires/app/(tabs)/profile.tsx

22 lines
494 B
TypeScript
Raw Normal View History

import React from 'react'
import { StyleSheet, TouchableOpacity, View } from 'react-native'
import { useSession } from '../ctx'
export default function PostsScreen() {
const { logout } = useSession()
return (
<View style={styles.wrapper}>
<TouchableOpacity onPress={() => logout()}>Logout</TouchableOpacity>
</View>
)
}
const styles = StyleSheet.create({
wrapper: {
flex: 1,
backgroundColor: '#25292e',
padding: 5
}
})