KevinnZou / compose-webview-multiplatform

WebView for JetBrains Compose Multiplatform
https://kevinnzou.github.io/compose-webview-multiplatform/
Apache License 2.0
305 stars 39 forks source link

WebView Support for Web Platform #118

Open JagadishaIncture opened 2 months ago

JagadishaIncture commented 2 months ago

Hi ,

I Using WebView in Android,iOS,and Desktop its working fine as expected. now I wanted to extend my app to Web Experimental also. so I need to know the support for Web Platform (Web Assembly)

KevinnZou commented 2 months ago

@JagadishaIncture Thanks for your feedback! Please refer to this issue

ShmuelCammebys commented 2 months ago

There is a workaround where you can define expect fun WebView(params...) and define the actual implementation on each platform with the same code (creates code duplication, but it works), and on JS just write an empty function (or implement).

KevinnZou commented 2 months ago

@ShmuelCammebys Thanks for your suggestions! I think will take that plan as a workaround. Thanks!