Skip to main content

Hello,

I'm using Amplitude in React Native.

I'm utilizing React Navigation's Bottom-tabs navigation, and within the tab's screen component,

I'm using useFocusEffect to trigger the track function when the component gains focus.

I can see the following log in the Debug Log, but the events are not being recorded in Amplitude.

Is there any way to identify the cause?

Amplitude Logger [Debug]: {
"type": "invoke public method",
"name": "track",
"args": [
"view_main_product_tab",
{
"eventType": "View",
"environment": "development"
}
],
"stacktrace": [
...
],
"time": {
"start": "2023-08-16T04:10:26.772Z",
"end": "2023-08-16T04:10:28.023Z"
},
"states": {
"before": {
"config.apiKey": "API KEY",
"timeline.queue.length": 0
},
"after": {
"config.apiKey": "API KEY",
"timeline.queue.length": 0
}
}
}
Be the first to reply!

Reply