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
natario1
08/04/2021, 10:57 AM
You're looking for
AndroidView
j
james
08/04/2021, 11:02 AM
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
natario1
08/04/2021, 11:03 AM
You still need to put a real view in it - AndroidView is just a composable function