microsoft / clarity

A behavioral analytics library that uses dom mutations and user interactions to generate aggregated insights.
https://clarity.microsoft.com
MIT License
2.09k stars 208 forks source link

setCurrentScreenName in React Native is not setting ScreenName but ComponentName in the dashboard #562

Open nateshmbhat opened 6 months ago

nateshmbhat commented 6 months ago

In the react native sdk , after calling setCurrentScreenName on navigation state change of every screen, in the dashboard it is being shown only in the Components list and not in the Screens listing. In the Screens list it only shows MainActivity.

Please fix this behavior

roots-ai commented 4 months ago

For me it's only showing MainActivity in the dashboard..

Tried adding setCurrentScreenName in componentDidMount, and also inside onEnter in the Scene with react-native-router-flux, doesn't work anywhere.