Ask for help to send a message to webview in rn. Ios is fine. Android message event does not trigger. Any ideas?

problem description

rn does not display properly from ios to android compatible internal webview
tested addeventlistener ("message") does not trigger

it has been confirmed that
the event listening code is not executed because the window has not been loaded.

Mar.28,2021

in the Android environment
webview.injectJavascript ("window.aaa = 'bbb';");
this kind of code is executed as similar to
webview.injectJavascript ("document.write (' bbb');");
modifies the scheme to
webview.injectJavascript ("var aaa = 'bbb';");

Menu