Are there any thoughts already on how to gradually...
# compose
p
Are there any thoughts already on how to gradually migrate from a fragment only to a compose only world?
j
Well it would be easiest to first migrate the Views to Compose, then follow with the entire architecture (App Scaffolding)
So keep your Fragments, but instead of inflating a View on onCreateView, return a ComposeView:
Copy code
override fun onCreateView(parameters) = ComposeView(requireContext()).apply {
    setContent {
        // Compose Code
    }
}
👍 1
4
Then, remove your Fragments and move to navigation-compose or whatever