Skip to content

Instantly share code, notes, and snippets.

@harry-private
Last active January 23, 2022 18:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save harry-private/dcc4fcae36b83eeaf1f66314cb58761d to your computer and use it in GitHub Desktop.
Save harry-private/dcc4fcae36b83eeaf1f66314cb58761d to your computer and use it in GitHub Desktop.
For medium article How to add WebView in Jetpack Comose
@Composable
fun MyWebView(
urlToRender: String,
application: App,
) {
Column {
AndroidView(factory = { context ->
application.myViewFun(context, urlToRender)
}, update = {
it.loadUrl(urlToRender)
})
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment