Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
}
__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
);