File tree Expand file tree Collapse file tree 3 files changed +7
-0
lines changed
Expand file tree Collapse file tree 3 files changed +7
-0
lines changed Original file line number Diff line number Diff 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 }}
Original file line number Diff line number Diff 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 ;
Original file line number Diff line number Diff 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 ;
You can’t perform that action at this time.
0 commit comments