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:
@@ -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>
|
||||
)
|
||||
}
|
||||
@@ -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,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user