News for hackers. Stuff that matters.
Re:Create React apps using Kotlin by maxfurman on Saturday November 04, 2017 @03:04PM (#15626393)
Does this mean that Kotlin -> React -> React Native is feasible too? It's a bit ridiculous on its face, but is there a better way to run Kotlin on iOS? Kotlin is a godsend for Android but if you have to support both platforms one codebase is better
Re:Create React apps using Kotlin by on_and_off on Saturday November 04, 2017 @04:48PM (#15626836)
Kotlin Native is what you are looking for.

Or maybe j2Objc

One codebase for both platforms is not necessarily what you want though.

Let me rephrase, it might be what you want for a pretty small app : if you have to create an app for a restaurant with orders and menu, a cross platform solution is probably the best use of your time.

For anything bigger, it becomes a harder sell. All these solutions tend to have the same downsides :

- limited access to new platform features. Especially damaging when Apple tells you that you are going to get featured if you do a Watch app but your SDK does not support that yet.

- one design does not scale well to two platforms with different UX and features.

- one more layer of abstraction to manage; making maintainability harder

I think that there is clearly a space for a cross platform business logic framework though. It tends to be the same on both platform with minor differences. It is a pity that only j2objc seems to clearly target this. k2objc/swift would be awesome.

Re:Create React apps using Kotlin by maxdo on Sunday November 05, 2017 @04:50AM (#15628828)
Don’t mix platform and language. Having same language is just 5% of one platform for iOS android and windows. Weex gives also web mobile support btw.
Re:Create React apps using Kotlin by jrudolph on Saturday November 04, 2017 @03:27PM (#15626477)
Yes, it's called Kotlin Native: https://github.com/JetBrains/kotlin-native

Kotlin right now is a serious competitor for a full stack, any device language. An alternative may be F# which has Fable for Browser, Xamarin (mobile) and .net core for server. But Kotlin looks more integrated to me.

Coming from a C#/F# background, Kotlin is really a joy to use.

Re:Create React apps using Kotlin by bitL on Saturday November 04, 2017 @05:24PM (#15626970)
Yeah, if they play it right they can be one-size-fits-all solution. A question is if they would take risks with such approach as their motto is to "implement stuff that is winning", i.e. copying things others did and that worked well (in commercial sense) and avoid experimental stuff that doesn't bring money in.
Re:Create React apps using Kotlin by ceronman on Saturday November 04, 2017 @03:31PM (#15626501)
It's not production ready yet, but Kotlin Native is probably the way to go for iOS support.

https://github.com/JetBrains/kotlin-native

Re:Create React apps using Kotlin by chris_overseas on Sunday November 05, 2017 @08:15AM (#15629233)
There's an announcement and some example code for building iOS apps with Kotlin/Native here, including reusing some of the code across iOS and Android:

https://blog.jetbrains.com/kotlin/2017/11/kotlinconf-keynote...

Re:Create React apps using Kotlin by vbezhenar on Sunday November 05, 2017 @06:30AM (#15628994)
I'm waiting for Kotlin-based React Native alternative without any trace of JavaScript (in mobile). Kotlin JVM for Android and server rendering, Kotlin Native for iOS, Kotlin JavaScript for Web. Makes more sense than JavaScript everywhere.