Hacker News new | ask | show | jobs
by on_and_off 3085 days ago
> Simple unidirectional data flow & UI state being a simple function of app state make for a beautifully clean and unambiguous model for how everything fits together.

Not an iOS expert (I work on Android) but can't you have this in native in the first place ? Many Android apps are already using this kind of arch without React Native. I don't see why it can't be the same on iOS.

1 comments

Yes, but it doesn't come for free. You have to adopt an architecture & write the relevant boilerplate, or use a library where relevant. In the RN case, the least trivial part is applying UI diffs representing the move from a previous to next app state.

Have a look at my parent post -- what I was expressing a wish for was a cross-platform Kotlin library implementing RN-like UI rendering. I'd love to get a combination of the benefits of the RN approach, but written natively in Kotlin.