Created
May 13, 2024 20:42
-
-
Save MkhytarMkhoian/7b6ad65d349465e4e1cb1f59e357c6d7 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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