expo / router

[ARCHIVE]: Expo Router has moved to expo/expo -- The File-based router for universal React Native apps
https://docs.expo.dev/routing/introduction/
1.36k stars 113 forks source link

[Web] Page title cannot be changed in v2 #835

Closed gaishimo closed 1 year ago

gaishimo commented 1 year ago

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

cseelus commented 1 year ago

See this discussion: https://github.com/expo/router/discussions/770

EvanBacon commented 1 year ago

Closing in favor of https://github.com/expo/router/discussions/770