News for hackers. Stuff that matters.

TadeasKriz

Re:Reactant is a new native framework for iOS on Saturday September 30, 2017 @01:27PM (#15373930)
You can't change the binary, but you can change the app. But with Reactant, we compile the XML files containing the UI into native Swift when building in Release mode. We do that to remove any runtime overhead that would be added by parsing the XML and going through it to create the UI/layout.
Re:Reactant is a new native framework for iOS on Friday September 29, 2017 @06:58PM (#15369980)
You are right, live reloading is just for the UI part. Swift doesn’t have the same dynamism ObjC had, so we can’t simply swap the implementation. We’ve tried Injection4Xcode (hope I got the name right), but it’s limited to ObjC only (or @objc Swift classes).
Hey HN,

we're pleased to announce the release of Reactant, an iOS framework and architecture for faster app development. At our company, Brightify, we do everything to deliver the best and cleanest code to our clients. We tried multiple architectures, but none seemed like the best solution. We thought that React was awesome in having a single point of mutation, so we decided to take MVC architecture and enhance it. After many iterations, Reactant was born.

We already use it in our applications and wouldn't change it. It helped us speed up our development and cut down the costs. We hope it will do the same for you.

As a bonus, we have a Reactant UI, which is a way to declare UI in XML which is then precompiled to Swift. Apart from XML being better for UI declaration, it also allowed us to implement a Live Reload functionality. That way, any change in the UI is immediately visible in the Simulator, without the need to build and run the app.