Last active
January 23, 2022 18:33
-
-
Save harry-private/dcc4fcae36b83eeaf1f66314cb58761d to your computer and use it in GitHub Desktop.
For medium article How to add WebView in Jetpack Comose
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@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