Hello, i have a very simple KMM project, implement...
# moko
r
Hello, i have a very simple KMM project, implemented ViewModel using mokomvvm. Now adding Di using Koin. Is MokoVM compliant with Koin? If so, can you please point me to a sample project? thanks
d
Yes, moko-mvvm works fine with Koin. See https://github.com/icerockdev/moko-mvvm/issues/160 for how to create the
viewModelDefinition
for each platform. Once you have the
viewModelDefinition
declared, then you declare your view models with it in common code:
Copy code
viewModelDefinition { ExampleViewModel() }
👀 1
r
thanks will try it later
Hi, known project sample you can share? thanks
Please have a look on the following repo, i'm learning KMM, the basics https://github.com/tmromao/usersv2/tree/koin