diff --git a/api-docs/docs/react-native-tracker/markdown/react-native-tracker.getwebviewcallback.md b/api-docs/docs/react-native-tracker/markdown/react-native-tracker.getwebviewcallback.md index afedd98d4..cf17e1b19 100644 --- a/api-docs/docs/react-native-tracker/markdown/react-native-tracker.getwebviewcallback.md +++ b/api-docs/docs/react-native-tracker/markdown/react-native-tracker.getwebviewcallback.md @@ -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: `` +To subscribe for the events, use as the `onMessage` prop for a `WebView` component. Signature: diff --git a/api-docs/docs/react-native-tracker/markdown/react-native-tracker.md b/api-docs/docs/react-native-tracker/markdown/react-native-tracker.md index 5e6f97bf0..22ecb8b29 100644 --- a/api-docs/docs/react-native-tracker/markdown/react-native-tracker.md +++ b/api-docs/docs/react-native-tracker/markdown/react-native-tracker.md @@ -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 onMessage attribute: <WebView onMessage={getWebViewCallback()} ... /> | +| [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 onMessage prop for a WebView 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 | diff --git a/common/changes/@snowplow/react-native-tracker/fix-docs-build_2025-10-17-01-19.json b/common/changes/@snowplow/react-native-tracker/fix-docs-build_2025-10-17-01-19.json new file mode 100644 index 000000000..a1602d217 --- /dev/null +++ b/common/changes/@snowplow/react-native-tracker/fix-docs-build_2025-10-17-01-19.json @@ -0,0 +1,10 @@ +{ + "changes": [ + { + "packageName": "@snowplow/react-native-tracker", + "comment": "", + "type": "none" + } + ], + "packageName": "@snowplow/react-native-tracker" +} \ No newline at end of file diff --git a/trackers/react-native-tracker/src/web_view_interface.ts b/trackers/react-native-tracker/src/web_view_interface.ts index f177beab7..d831a76f7 100644 --- a/trackers/react-native-tracker/src/web_view_interface.ts +++ b/trackers/react-native-tracker/src/web_view_interface.ts @@ -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: - * `` + * 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. */