From e5e191b438ecf35056b3f3c031a8bb170bbc2cc6 Mon Sep 17 00:00:00 2001 From: Xiaowei Zhu <33129495+zhu-xiaowei@users.noreply.github.com> Date: Thu, 11 Apr 2024 19:08:57 +0800 Subject: [PATCH] docs: add how tracking React Navigation screen view events (#6) Co-authored-by: xiaoweii --- .github/workflows/test.yml | 3 ++- README.md | 5 +++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index bf95dbc..a01c16f 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -16,7 +16,8 @@ jobs: yarn yarn run test - name: Upload Test Report - uses: codecov/codecov-action@v3 + uses: codecov/codecov-action@v4 with: + token: ${{ secrets.CODECOV_TOKEN }} name: report files: coverage/coverage-final.json diff --git a/README.md b/README.md index 44c2e9c..b753fdb 100644 --- a/README.md +++ b/README.md @@ -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