Hi guys. In our Design System lib we created a mul...
# compose
e
Hi guys. In our Design System lib we created a multi preview annotation to use in our main app and other modules.
Copy code
@Preview(showSystemUi = true, showBackground = true, device = Devices.PHONE)
@Preview(showSystemUi = true, showBackground = true, device = Devices.NEXUS_7_2013)
@Preview(showSystemUi = true, showBackground = true, device = Devices.NEXUS_5)
annotation class DevicePreviews
It works like a charm inside of DS project. But it doesn’t work in our main app. The Android Studios doesn’t render any preview with this annotation. We are using compose bom
2023.01.00
in both main app and design system lib. Is it a bug or did I miss something to make it work?
c
what AS version? if you upgrade to latest giraffe... does the problem go away?
e
Doesn’t work, I tested with Giraffe Canary 11 and Flamingo Beta 5