very basics of auth state - not actually authenticating anything right now....
This commit is contained in:
21
app/(tabs)/profile.tsx
Normal file
21
app/(tabs)/profile.tsx
Normal file
@@ -0,0 +1,21 @@
|
||||
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
|
||||
}
|
||||
})
|
||||
Reference in New Issue
Block a user