Home > @snowplow/react-native-tracker > getWebViewCallback
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:
Callback to subscribe for events from Web views tracked using the Snowplow WebView tracker.