<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [@snowplow/react-native-tracker](./react-native-tracker.md) &gt; [getWebViewCallback](./react-native-tracker.getwebviewcallback.md)

## 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.

<b>Signature:</b>

```typescript
export declare function getWebViewCallback(): WebViewMessageHandler;
```
<b>Returns:</b>

[WebViewMessageHandler](./react-native-tracker.webviewmessagehandler.md)

Callback to subscribe for events from Web views tracked using the Snowplow WebView tracker.

