-
|
Hello, I'm trying to create a screen tracking function, but navigation between tabs is calling index.tsx Tabs.tsx Home.tsx |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
|
You shouldn't count how many times If there is something specific you're tracking, then you should check if that property is changing and track that. For screen tracking, we have example in docs https://reactnavigation.org/docs/screen-tracking/ |
Beta Was this translation helpful? Give feedback.
You shouldn't count how many times
onStateChangewas called. It could be called many times for different reasons. It'll also be called when params update or properties that don't have anything to do with which screen is displayed.If there is something specific you're tracking, then you should check if that property is changing and track that. For screen tracking, we have example in docs https://reactnavigation.org/docs/screen-tracking/