Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

Enables tracking events from apps rendered in react-native-webview components. The apps need to use the Snowplow WebView tracker to track the events.

To subscribe for the events, set the `onMessage` attribute: `<WebView onMessage={getWebViewCallback()} ... />`
To subscribe for the events, use as the `onMessage` prop for a `WebView` component.

<b>Signature:</b>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
| --- | --- |
| [getAllTrackers()](./react-native-tracker.getalltrackers.md) | Retrieves all initialized trackers |
| [getTracker(trackerNamespace)](./react-native-tracker.gettracker.md) | Retrieves an initialized tracker given its namespace |
| [getWebViewCallback()](./react-native-tracker.getwebviewcallback.md) | Enables tracking events from apps rendered in react-native-webview components. The apps need to use the Snowplow WebView tracker to track the events.<!-- -->To subscribe for the events, set the <code>onMessage</code> attribute: <code>&lt;WebView onMessage={getWebViewCallback()} ... /&gt;</code> |
| [getWebViewCallback()](./react-native-tracker.getwebviewcallback.md) | Enables tracking events from apps rendered in react-native-webview components. The apps need to use the Snowplow WebView tracker to track the events.<!-- -->To subscribe for the events, use as the <code>onMessage</code> prop for a <code>WebView</code> component. |
| [newTracker(configuration)](./react-native-tracker.newtracker.md) | Creates a new tracker instance with the given configuration |
| [removeAllTrackers()](./react-native-tracker.removealltrackers.md) | Removes all initialized trackers |
| [removeTracker(trackerNamespace)](./react-native-tracker.removetracker.md) | Removes a tracker given its namespace |
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"changes": [
{
"packageName": "@snowplow/react-native-tracker",
"comment": "",
"type": "none"
}
],
"packageName": "@snowplow/react-native-tracker"
}
3 changes: 1 addition & 2 deletions trackers/react-native-tracker/src/web_view_interface.ts
Original file line number Diff line number Diff line change
Expand Up @@ -111,8 +111,7 @@ function webViewPayloadBuilder(pb: PayloadBuilder): PayloadBuilder {
* Enables tracking events from apps rendered in react-native-webview components.
* The apps need to use the Snowplow WebView tracker to track the events.
*
* To subscribe for the events, set the `onMessage` attribute:
* `<WebView onMessage={getWebViewCallback()} ... />`
* To subscribe for the events, use as the `onMessage` prop for a `WebView` component.
*
* @returns Callback to subscribe for events from Web views tracked using the Snowplow WebView tracker.
*/
Expand Down
Loading