Hackle WebView bridge plugin for React Native.
react-native-webviewnpm install @hackler/react-native-webview-plugin
# or, using yarn:
# yarn add @hackler/react-native-webview-plugin
import { WebView } from 'react-native-webview';
import { createHackleWebViewConfig } from '@hackler/react-native-webview-plugin';
function MyWebView() {
const config = createHackleWebViewConfig();
return (
<WebView
source={{ uri: 'https://your-website.com' }}
nativeConfig={config}
/>
);
}
import { WebView } from 'react-native-webview';
import { createHackleWebViewConfig } from '@hackler/react-native-webview-plugin';
function MyWebView() {
const config = createHackleWebViewConfig({
automaticScreenTracking: true,
automaticEngagementTracking: true,
});
return (
<WebView
source={{ uri: 'https://your-website.com' }}
nativeConfig={config}
/>
);
}