What would be the place for sending info for example to Google Analytics that which screen the user has visited? Is there support for coming for events like this. For example onScreenEnter
or something similar where I can send data to Google Analytics?
https://wix.github.io/react-native-navigation/#/screen-api?id=screen-visibility
Is that global or screen specific? Because I would like to listen all screens :)
The event is sent to the screen that appeared/disappeared 馃憤
Hmm okay. I think I have some make high order component or something if there isn't global listener for events like this
@henrikra Hi, have you figured out how to listen to these events using global listener since adding onNavigatorEvent to each screen is annoying.... I have to send the trackTiming
for each screen.
is there any other workaround? setting up onNavigatorEvent
for each screen doesn't seems a good idea.
@sijad You can track screen visibility globally. This listener was pretty much implemented to answer a specific need we had in the Wix app, maybe it will be useful to you as well.
@guyca Hi there, could you please explain how or where you need to implement that code?
@cosivox I found the implementation sample of this global listener here.
@cosivox When I use SharedElementTransition to call an action it does not pass through these global listenes.
Can you help me?
Most helpful comment
@cosivox I found the implementation sample of this global listener here.