expo / router

[ARCHIVE]: Expo Router has moved to expo/expo -- The File-based router for universal React Native apps

Home Page:https://docs.expo.dev/routing/introduction/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[Web] Page title cannot be changed in v2

gaishimo opened this issue · comments

Which package manager are you using? (Yarn is recommended)

yarn

Summary

In v2 web, the title value in options of Navigator.Screen does not change the actual title.

<Navigator>
  <Navigator.Screen name="index" options={{ title: "Title" }} />
  <Navigator.Slot />
</Navigator>

It worked on expo-router v1.

Minimal reproducible example

https://github.com/gaishimo/expo-router-example

See this discussion: #770

Closing in favor of #770