Hackle WebView bridge for React Native
Hackle WebView bridge plugin for React Native.
- Seamless integration with react-native-webview
- Automatic Hackle bridge injection into WebView instances
- react-native-webview >= 11.0.0
- @hackler/react-native-sdk >= 3.28.0
`` shell`
npm install @hackler/react-native-webview-pluginor, using yarn:
yarn add @hackler/react-native-webview-plugin
` typescript
import { WebView } from 'react-native-webview';
import { createHackleWebViewConfig } from '@hackler/react-native-webview-plugin';
function MyWebView() {
const config = createHackleWebViewConfig();
return (
nativeConfig={config}
/>
);
}
`
` typescript
import { WebView } from 'react-native-webview';
import { createHackleWebViewConfig } from '@hackler/react-native-webview-plugin';
function MyWebView() {
const config = createHackleWebViewConfig({
automaticScreenTracking: true,
automaticEngagementTracking: true,
});
return (
nativeConfig={config}
/>
);
}
``