How to use the react-native-webview.WebView.extraNativeComponentConfig function in react-native-webview

To help you get started, we’ve selected a few react-native-webview examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github RangerMauve / datmobile / react-native-protocol-webview / index.js View on Github external
}

	__dispatchCommand(commandName, args) {
		const ref = this.webViewRef.current.webViewRef.current
		UIManager.dispatchViewManagerCommand(
			ReactNative.findNodeHandle(ref),
			UIManager.getViewManagerConfig('ProtocolWebView').Commands[commandName],
			args,
		);
	}
}

const ProtocolWebViewNative = requireNativeComponent(
	'ProtocolWebView',
	ProtocolWebView,
	WebView.extraNativeComponentConfig
);

react-native-webview

React Native WebView component for iOS, Android, macOS, and Windows

MIT
Latest version published 3 days ago

Package Health Score

95 / 100
Full package analysis