Skip to content

Commit

Permalink
Merge pull request #398 from whereby/remiquinto/pan-1369-check-if-we-…
Browse files Browse the repository at this point in the history
…are-tracking-usage-from-react-native-webview

Track usage from react native embed component
  • Loading branch information
remi-quinto authored Sep 11, 2024
2 parents 9c57b1c + 1ebacf6 commit d0e97dc
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/big-bulldogs-work.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@whereby.com/react-native-sdk": minor
---

Add tracking for embed component
2 changes: 2 additions & 0 deletions packages/react-native-sdk/src/embed/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -199,6 +199,8 @@ const WherebyEmbed = React.forwardRef<WherebyWebView, WherebyEmbedProps>(
const ON = "on";
const OFF = "off";

roomUrl.searchParams.set("sdkPlatform", "react-native-embed");

Object.entries({
...(props.displayName && { displayName: props.displayName }),
...(props.lang && { lang: props.lang }),
Expand Down

0 comments on commit d0e97dc

Please sign in to comment.