TikTok's Android team migrated to Jetpack Compose to address technical debt and performance issues caused by complex, deeply nested View hierarchies. The migration delivered up to 78% reduction in page loading time for new or fully rewritten pages and a 58% reduction in code size compared to equivalent View-based implementations. The team adopted an incremental migration strategy, starting with the QR code feature, then expanding to Login and Sign-up flows. Key learnings include avoiding multiple small ComposeViews inside a single ViewHolder (use one ComposeView per ViewHolder instead) and that migrating ViewPager to Composable outperformed migrating individual Fragments. TikTok plans to make Compose their preferred Android UI framework long-term.
Table of contents
Get Started with Jetpack ComposeSort: