very basics of auth state - not actually authenticating anything right now....

This commit is contained in:
Will Baumbach
2025-08-05 12:04:02 -05:00
parent 813cb44637
commit 409f15f233
8 changed files with 224 additions and 23 deletions

21
app/(tabs)/profile.tsx Normal file
View 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
}
})