I am trying to make analytics logging for screen view whenever the router changed. I am using react-native-router-flux but it seems there is no way to detect that in the guide? Can anyone help me with this? Thanks in advance!
Like below
if (routerChanged) {
analytics().logScreenView({
screen_name: currentRouteName,
screen_class: currentRouteName,
});
}