nvm i figured it out i just need to add a custom back button to the details page now i guess lol

This commit is contained in:
Will Baumbach
2025-08-08 00:53:50 -05:00
parent 23c006857e
commit 10ef00f753
2 changed files with 2 additions and 5 deletions

View File

@@ -2,9 +2,6 @@ import { Stack } from "expo-router";
export default function PostsLayout() {
return (
<Stack>
<Stack.Screen options={{ headerShown: false }} name='overview' />
<Stack.Screen options={{ headerTitle: 'Details'}} name='details' />
</Stack>
<Stack screenOptions={{ headerShown: false }}></Stack>
)
}

View File

@@ -9,7 +9,7 @@ export const CompactPostComponent: React.FC<Post> = (post) => {
return (
<TouchableOpacity key={post._id} style={styles.posts} onPress={()=>{
router.push({
pathname: '/posts/details',
pathname: '/posts/details',
params: {
id: post._id,
}