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, set the onMessage attribute: <WebView onMessage={getWebViewCallback()} ... />
Signature:
export declare function getWebViewCallback(): WebViewMessageHandler;Returns:
Callback to subscribe for events from Web views tracked using the Snowplow WebView tracker.