Skip to content

Commit e5e191b

Browse files
zhu-xiaoweixiaoweii
andauthored
docs: add how tracking React Navigation screen view events (#6)
Co-authored-by: xiaoweii <xiaoweii@amazom.com>
1 parent ee62c5a commit e5e191b

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

.github/workflows/test.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@ jobs:
1616
yarn
1717
yarn run test
1818
- name: Upload Test Report
19-
uses: codecov/codecov-action@v3
19+
uses: codecov/codecov-action@v4
2020
with:
21+
token: ${{ secrets.CODECOV_TOKEN }}
2122
name: report
2223
files: coverage/coverage-final.json

README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -192,6 +192,11 @@ ClickstreamAnalytics.record({
192192
});
193193
```
194194

195+
#### Record screen views when using React Navigation
196+
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
197+
198+
For other version of React Navigation, you can refer to official documentation: [Screen tracking for analytics](https://reactnavigation.org/docs/screen-tracking/).
199+
195200
#### Other configurations
196201

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

0 commit comments

Comments
 (0)