Can we maintain different variants of same Composable function for different flavors/build types?
c
CLOVIS
01/19/2021, 7:22 AM
I think they said in a podcast that Composable functions can have the `expect`/`actual` keyword, but I'm not 100% sure.
j
Joost Klitsie
01/19/2021, 7:45 AM
I am going to guess it should work like any other code, I think the easiest would be for you to try it out
j
jim
01/19/2021, 7:46 AM
Composable functions CAN have `expect`/`actual`; that's how Compose Desktop and Compose Android share the same code but have platform-specific implementations for things that can't be done with common code.
K 1
j
Joost Klitsie
01/19/2021, 7:57 AM
but different flavors/build types is something different than expect/actual