Skip to content

Commit 9b7a3df

Browse files
committed
Update for 7.x & 8.x
1 parent 6793860 commit 9b7a3df

File tree

3 files changed

+7
-0
lines changed

3 files changed

+7
-0
lines changed

versioned_docs/version-6.x/screen-tracking.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ export default () => {
3232
ref={navigationRef}
3333
onReady={() => {
3434
routeNameRef.current = navigationRef.getCurrentRoute().name;
35+
3536
// Replace the line below to add the tracker from a mobile analytics SDK
3637
await trackScreenView(routeNameRef.current);
3738
}}

versioned_docs/version-7.x/screen-tracking.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,9 @@ export default function App() {
149149
ref={navigationRef}
150150
onReady={() => {
151151
routeNameRef.current = navigationRef.current.getCurrentRoute().name;
152+
153+
// Replace the line below to add the tracker from a mobile analytics SDK
154+
await trackScreenView(routeNameRef.current);
152155
}}
153156
onStateChange={async () => {
154157
const previousRouteName = routeNameRef.current;

versioned_docs/version-8.x/screen-tracking.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,9 @@ export default function App() {
149149
ref={navigationRef}
150150
onReady={() => {
151151
routeNameRef.current = navigationRef.current.getCurrentRoute().name;
152+
153+
// Replace the line below to add the tracker from a mobile analytics SDK
154+
await trackScreenView(routeNameRef.current);
152155
}}
153156
onStateChange={async () => {
154157
const previousRouteName = routeNameRef.current;

0 commit comments

Comments
 (0)