Skip to content

Instantly share code, notes, and snippets.

@dheeraj-bhadoria
Created May 23, 2023 08:57
Show Gist options
  • Save dheeraj-bhadoria/154eea7dd32528f2376e7405eb7a6ba5 to your computer and use it in GitHub Desktop.
Save dheeraj-bhadoria/154eea7dd32528f2376e7405eb7a6ba5 to your computer and use it in GitHub Desktop.
class MainActivity : AppCompatActivity() {
private val viewModel: CreditCardViewModel by viewModels()
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
setContent {
CreditCardScreen(viewModel)
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment