Re:Kotlin 1.2 Released: Sharing Code Between Platforms
by yole on Tuesday November 28, 2017 @01:00PM
(#15799656)
You can't reuse UI code between iOS and Android. You do have the ability to reuse the business logic code (domain models and so on).
[ Parent
| on HN ]
Re:Kotlin 1.2 Released: Sharing Code Between Platforms
by maxdo on Tuesday November 28, 2017 @01:48PM
(#15800133)
Great idea , but for many react apps (both native and JS) domain models doesn’t exists. Redux + graphql apps let me eliminate even more logic. So what we actually share between react native and react JS apps are : graphql queries, reducers, saga middleware. The rest is just UI. In my usecases there is nothing to share using Kotlin.