Skip to content

Commit

Permalink
feat: add documentation for tracking React Navigation screen view events
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaoweii committed Apr 8, 2024
1 parent ee62c5a commit d96dea9
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,11 @@ ClickstreamAnalytics.record({
});
```

#### Record screen views when using React Navigation
Here's an [example](https://github.com/aws-samples/clickstream-sdk-samples/pull/25/files#diff-96a74db413b2f02988e5537fdbdf4f307334e8f5ef3a9999df7de3c6785af75bR344-R397) of globally logging React Native screen view events when using React Navigation 6.x

For other version of React Navigation, you can refer to official documentation: [Screen tracking for analytics](https://reactnavigation.org/docs/screen-tracking/).

#### Other configurations

In addition to the required `appId` and `endpoint`, you can configure other information to get more customized usage
Expand Down

0 comments on commit d96dea9

Please sign in to comment.