Luca
06/12/2020, 8:07 PM@Preview
@Composable
fun ExampleCompPreview() {
val viewComponent = ViewComponent.Initializer.init(AppComponent.init())
val vmf = viewComponent.factory
ExampleComp((vmf.create(ExampleViewModel::class.java)))
}
But no matter what I get:
A successful build is needed before the preview can be displayed.
(The app runs fine on a phone)
Or even if anyone knows of a way to see debug logs for Previews it would be helpful.