compose-views-interop

Community

Fix hybrid View↔Compose performance during migration.

Authorsantimattius
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This Skill helps you prevent jank, leaks, and wasted recomposition work when migrating Android apps that must run both classic Views and Jetpack Compose together.

Core Features & Use Cases

  • Choose the right interop boundary for hosting Compose inside Views (ComposeView) or hosting Views inside Compose (AndroidView), including RecyclerView/ViewPager2 hybrids and Fragment/Dialog hosting.
  • Apply performance-first phase thinking so state reads at the interop boundary don’t accidentally trigger high-cost Composition work every frame.
  • Select the correct ViewCompositionStrategy to ensure Compose is disposed at the right lifecycle moment (especially in Fragments and RecyclerView ViewHolders).

Quick Start

Load compose-views-interop, then apply the interop decision tree to your ComposeView/AndroidView setup and adjust update/setContent patterns and ViewCompositionStrategy to eliminate hybrid performance regressions.

Dependency Matrix

Required Modules

None required

Components

references

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: compose-views-interop
Download link: https://github.com/santimattius/performance-compose-skills/archive/main.zip#compose-views-interop

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.