I was using jetpack compose 1.0.0-alpha 11. The below code works.
Image(
imageResource(R.drawable.header),
contentDescription = null,
modifier = itemModifier,
contentScale = ContentScale.Crop
)
However in jetpack compose 1.0.0-beta07, imageResource and vectorResource no longer works.
What's the new way of getting the image resources?