Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

react navigation header title

// using params in the title
<Stack.Screen
  name="Profile"
  component={ProfileScreen}
  options={({ route }) => ({ title: route.params.name })}
 />
Source by reactnavigation.org #
 
PREVIOUS NEXT
Tagged: #react #navigation #header #title
ADD COMMENT
Topic
Name
3+5 =