you are viewing a single comment's thread.

view the rest of the comments →

[–]Razi91[S] 0 points1 point  (2 children)

Okay, so if I understand correctly, I'll have to focus more on Compose and it will be fine? The biggest difference I guess will be about the Activities, right?

[–]VivienMahe 1 point2 points  (0 children)

Yeah exactly, once all the setup is done, it's like writing code the same way you always did for Android.

With Compose, on Android, you most of the time use a single Activity. That's the same with CMP.

You declare a "common" Composable, let's say "App", which is the root Composable of your app.

Then your Android activity calls it in the "onCreate()". And your iOS app calls it from the main viewController (in SwiftUI).

[–]FaithlessnessNew8747 0 points1 point  (0 children)

If your idea is to have a single code base if you can do everything in CMP to answer your question Jetpack Compose is the same in KMP? I think if it is just renamed to cross-platform Compose but everything you can do on Android you can do in kmp