<!-- 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; [WebViewMessageHandler](./react-native-tracker.webviewmessagehandler.md)

## WebViewMessageHandler type

A callback to be used for the `onMessage` prop of a `WebView` component.

<b>Signature:</b>

```typescript
export declare type WebViewMessageHandler = (message: {
    nativeEvent: {
        data: string;
    };
}) => void;
```
