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() {
|
export default function PostsLayout() {
|
||||||
return (
|
return (
|
||||||
<Stack>
|
<Stack screenOptions={{ headerShown: false }}></Stack>
|
||||||
<Stack.Screen options={{ headerShown: false }} name='overview' />
|
|
||||||
<Stack.Screen options={{ headerTitle: 'Details'}} name='details' />
|
|
||||||
</Stack>
|
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
@@ -9,7 +9,7 @@ export const CompactPostComponent: React.FC<Post> = (post) => {
|
|||||||
return (
|
return (
|
||||||
<TouchableOpacity key={post._id} style={styles.posts} onPress={()=>{
|
<TouchableOpacity key={post._id} style={styles.posts} onPress={()=>{
|
||||||
router.push({
|
router.push({
|
||||||
pathname: '/posts/details',
|
pathname: '/posts/details',
|
||||||
params: {
|
params: {
|
||||||
id: post._id,
|
id: post._id,
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user