News for hackers. Stuff that matters.
Re:WalmartLabs opensources its tool for bringing React Nativ... by on_and_off on Sunday October 01, 2017 @01:58PM (#15378942)
>Ultimately the declarative way of writing apps is objectively better and more predictable than the old mutable way :)

how has this anything to do with RN ?

You can write declarative codebases in swift or kotlin, no need for RN to achieve this.

Re:WalmartLabs opensources its tool for bringing React Nativ... by boubiyeah on Sunday October 01, 2017 @04:42PM (#15379688)
I never coded native apps so forget my ignorance but how would you build an UI declaratively with swift? The turorial shows very imperative/mutative code indeed:

@IBAction func setDefaultLabelText(_ sender: UIButton) { mealNameLabel.text = "Default Text" }

Re:WalmartLabs opensources its tool for bringing React Nativ... by on_and_off on Tuesday October 03, 2017 @02:49AM (#15390650)
No need to apologize for asking an honest question :)

By combining a good databinding framework and reactive extension

so Bond & RxSwift or DataBinding (from google) & RxJava (or RxKotlin if/when it becomes a thing).

Of course, behind the scenes, this accesses the platform widgets in an imperative way (but that's also what RN has to do when it manipulates the same widgets). What matters is the API surface you interact with.