Skip to main content

react-native-tracker.getwebviewcallback

Home > @snowplow/react-native-tracker > getWebViewCallback

getWebViewCallback() function

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.

Signature:
export declare function getWebViewCallback(): WebViewMessageHandler;
Returns:

WebViewMessageHandler

Callback to subscribe for events from Web views tracked using the Snowplow WebView tracker.