Stack.Screen
Register a route and configure its native stack screen.
App.tsx
<Stack.Screen name="Note" component={Note} options={({ route }) => ({ title: route.params.title, })}/>Field notes
Inside a Stack.Navigator, give each Stack.Screen a route name and a React component. Type the route parameters when creating the stack. The options callback can then read those parameters to set the navigation bar title.
For a Note route declared as { title: string }, use the note's title in the bar.
<Stack.Screen
name="Note"
component={Note}
options={({ route }) => ({ title: route.params.title })}
/>The title defaults to the route name. For a zoom transition from a thumbnail, set sharedElementId in the destination's options. Shared element transitions · SharedElement reference