Closed senghuotlay closed 11 months ago
I am able to make it work by doing this, but it seems very unconventional
router.push(`${segment}/products?title=trending`);
export const unstable_settings = {
// Ensure that reloading on `/modal` keeps a back button present.
initialRouteName: '[title]'
};
export const ProductsLayout = () => {
return <Stack
screenOptions={{
headerLeft: () => <BackButton onPress={back} />
}}>
<Stack.Screen
name='[title]'
initialParams={local}
options={{
headerTitle: title
}}
/>
}
Any update on this guys?
Facing the same issue since version 2.0.0
Facing the same issue while using router.push() from 'expo-router'
maybe related to https://github.com/expo/expo/pull/24457 try this if it works: https://github.com/expo/router/issues/793#issuecomment-1646818185 temporary solution
Which package manager are you using? (Yarn is recommended)
yarn
Summary
i am unable to navigate to products screen at all
router.push(`${segment}/products/hello`);
I kept getting this error
my sitemap is showing it correctly![image](https://github.com/expo/router/assets/28380930/a9d68e45-5672-4f3c-b7d8-4936377b86e9)
It seems like the only i can approach that for now is to useQueryParams
router.push(
${segment}/products?title=hello)
Minimal reproducible example
Inside my dynamic layout