Skip to content

Instantly share code, notes, and snippets.

@MkhytarMkhoian
Created May 13, 2024 20:42
Show Gist options
  • Save MkhytarMkhoian/7b6ad65d349465e4e1cb1f59e357c6d7 to your computer and use it in GitHub Desktop.
Save MkhytarMkhoian/7b6ad65d349465e4e1cb1f59e357c6d7 to your computer and use it in GitHub Desktop.
class FareListFragment : Fragment(R.layout.compose_fragment) {
private val arguments: FareListFragmentArgs by navArgs()
private val navigator: FareListNavigator by inject {
parametersOf(findNavController(), lifecycleScope, requireContext())
}
override fun onViewCreated(view: View, savedInstanceState: Bundle?) {
super.onViewCreated(view, savedInstanceState)
val composeView = ComposeFragmentBinding.bind(view).compose
setAppComposeContent(composeView) {
FareListRoute(navigator = navigator, ryderId = arguments.ryderId)
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment