I'm using a react-navigation StackNavigation in react-native, but I need my header component to be very custom according to the route, the custom heade component will be placed, but I can't get the name of the route I'm on or something that identify in the header.
Very easy, with this line:
It will return a string with the name of the current route.