0
votes

import { createStackNavigator } from '@react-navigation/stack';

Im my component I call console.log(this.props.route);

Print this: Object { "key": "AddNew-b_MjpdpuB", "name": "AddNew", "params": undefined, }

1

1 Answers

0
votes

Title is for navigation header, it is not passed to component itself. Use initialParams

<Stack.Screen
  name="MyScreen"
  component={MyComponent}
  initialParams={{ title: 'some title' }}
/>