Hi, I'm trying to create a rootContext like this, ...
# decompose
f
Hi, I'm trying to create a rootContext like this, but it seems extension functions don't work on iOS. Is there a way I can do this without invoking the extension function?
Copy code
class RootComponent(
    context: ComponentContext,
    controller: WebHistoryController? = null,
) : StackComponent(context.childContext("stack")),
I think extension functions don't work in compose.
a
Could you elaborate on "extension functions don't work"? Extension functions do work in Compose, as well as in any other Kotlin code.
f
TBH I went down a rabbit hole and not sure if my ideas were correct when I posted that. Part of my problem was the I could not reference decompose in iOS. I was missing the exporting of the decompose binaries to the ios targets.
Thanks for getting back to me anyway 🙂 it's working now
👍 1