function getCurrentRouteFromNavigationState(navigationState) {
if (!navigationState) return null;
const route = navigationState.routes[navigationState.index];
if (route.state) return getCurrentRouteFromNavigationState(route.state);
return route.name;
}
For further actions, you may consider blocking this person and/or reporting abuse
Top comments (0)