Answer the question
In order to leave comments, you need to log in
How to add event handling to View?
The bottom line is this: I create a WebView component in an Android application using the code:
protected WebView createViewInstance(ThemedReactContext reactContext) {
WebView view = super.createViewInstance(reactContext);
final AndroidWebViewModule module = this.aPackage.getModule();
view.setWebChromeClient(new WebChromeClient(){
...
});
return view;
}
protected void onWindowVisibilityChanged(visibility) {
if (visibility != View.GONE) super.onWindowVisibilityChanged(visibility);
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question