if I have a screen built entirely in compose, but a 3rd party library I want to use requires a `View...
j
if I have a screen built entirely in compose, but a 3rd party library I want to use requires a
View
to be passed into it when using it to use as an anchor.. is there any way to do that? or is this type of interop impossible? it's important to note, the 3rd party library doesn't actually need to do anything with the
View
besides use it as an anchor point.. so if there was a way I could programmatically generate a view that could work I guess?
n
You're looking for
AndroidView
j
yeah I kinda started realising as I was writing it 😄 I wonder if I can just create an empty
AndroidView
and pass that in
n
You still need to put a real view in it - AndroidView is just a composable function
s
If you just need any view
LocalView.current
should work