Programmatically add webview to react ui element #24305
Labels
Component: WebView
Related to the WebView component.
Ran Commands
One of our bots successfully processed a command.
Resolution: Locked
This issue was locked by the bot.
Hi,
I am posting this question after spending days trying to add a webview dynamically from native code to a LinearLayout created through reactnative. I have provided some code at the end but just to give a brief I'm trying to instantiate and add a webview programmatically to a Layout element created through react native. The Layout object is itself a custom element that extends a ViewGroupManager. I can access the layout element because I am able to remove it's existing children and I'm able to change the layouts background color.
The webview loads a static string with HTML code.
REACT NATIVE PART
Layout element
App.js
ANDROID NATIVE
There are no specific error logs but I do see some logs every time I run the code :
Thanks!
The text was updated successfully, but these errors were encountered: