Hi Everyone. Does KMP currently support previewing in Android Studio? I created a function with @Preview annotation, but the preview does not appear on the right side of the IDE. Do I need additional configuration?
p
Pavel S
04/30/2024, 11:48 AM
You can just create previews in the androidMain sourceset. Or use compose desktop preview, but it’s more limited
m
Mats-Hjalmar
04/30/2024, 11:50 AM
To add to @Pavel S answer, Fleet uses compose desktop preview which means if you want compose resources you need to add desktop as target.
z
Zhang Zihan
04/30/2024, 11:56 AM
@Pavel S What should I do to use preview in desktopMain? There is no "Run Preview" on the left side of the @Preview function.