22 lines
494 B
TypeScript
22 lines
494 B
TypeScript
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
|
|
}
|
|
})
|