Tab selected event for tab navigator

Hello friends,

I have a tab navigator and I would like to know the index of the tab that the user clicked. Is there an event listener which can accomplish this?

Thank you.