A Composable is not meant to return anything if it draws something. In your case it should look like this:
@Composable
fun Home() {
BottomNavigationItem(...)
}
Welcome to the programming.dev Android development community!
The Android robot is reproduced or modified from work created and shared by Google and used according to terms described in the Creative Commons 3.0 Attribution License
A Composable is not meant to return anything if it draws something. In your case it should look like this:
@Composable
fun Home() {
BottomNavigationItem(...)
}
Found out why apparently you have to .invoke it because it needs to be in a rowscope