Is there a way to put a console.log on each screen to know which screen we are on, through the Stack.Navigator component? I'm using react native and typescript, I don't know if someone could give me an idea of how to add this information that would help me a lot!I don't want to manually add a console.log on each screen because I have so many and that would be a lot of changes.
I have in mind to use something like this:
<Stack.Navigator screenListeners={{state: (e) => { console.log(...) }}} />
thanks...