To support the incremental migration of views from Android views to Compose, the code utilizes the RecyclerView's ViewHolder pattern to create both Android and Compose views. As a workaround to use the view holder in compose AndroidView composable, the generated views are tagged with the view holder reference to allow the recomposition of the composable to call the view holder's bind method. Once all the views are migrated to compose, this will no longer be necessary.