Skip to content

Add Android preview to android-ios compose template #3499

Description

Describe the bug
I'm trying to preview my composables on the android side to see what I'm doing before compiling.

I have added the preview tooling lib to the androidMain

Screen Shot 2023-08-15 at 15 02 21

And then used the Chazmondo (@Preview) annotation on my androidmain package inside my shared folder

Screen Shot 2023-08-15 at 15 02 47

I cannot even see the preview icon on the top right corner to see the composable preview

This is my setup

Screen Shot 2023-08-15 at 15 15 44

Affected platforms
Select one of the platforms below:

Versions

  • Kotlin version*: 1.9.0
  • Compose Multiplatform version*: 0.6.1
  • OS version(s)* (required for Desktop and iOS issues):
  • OS architecture (x86 or arm64):
  • JDK (for desktop issues): corretto-17

Expected behavior
I should be able to see the preview

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions