Live data from Hacker News

Use ReactJS to Build Native Apps

twitter.com

171–175 of 175 posts

Re: Use ReactJS to Build Native Apps

#171

Earlier quoted context omitted.

Yes pleaseeeee tell me I can take advantage of just the View layer and use my own Model and Controller setup. With Titanium views are 'just' JS objects, so I can use Spine, Backbone, and other libraries for business and data logic.

Um, you can do that in React just fine. It's just you don't really need Backbone with React because plain object/array models are more convenient, and controllers aren't needed because there's no need to “orchestrate changes” between view and model. Check out Flux as an example of architecture (not a framework) that works really well with React.

Exactly. I once started a project with backbone and used React for the view layer. I quickly realized I didn't need the Backbone models and collections, and ended up only using the router and a few small other things. Eventually i replaced these remaining parts with some 'micro-frameworks' like lo-dash, page.js, superagent, etc.

Re: Use ReactJS to Build Native Apps

#172

Extremely excited about this! I tend to prefer native interfaces over web interfaces, but found it really bothersome to have to work with native toolkits. There's stuff like tint2 ( https://github.com/trueinteractions/tint2 ), but it's still not stable enough, IMO. This is HUGE. I'm extremely excited to try this out. Being able to write the interface with JS/JSX, and then switch between JS and native code as you see…

What was the issues you had with Tint (just curious).

Re: Use ReactJS to Build Native Apps

#175
post #64

Earlier quoted context omitted.

Please, please have constraint-based layout support- I know you want to have it, given your work on react-gss :-)

What would be awesome and truly useful is real constraints, like in CAD software. I should be able to express every width, height, x, and y value as a variable, or as a function of other variables. So I call the device height "A", the width "B", and express the rest of the UI in terms of those variables. Then at runtime "A" and "B" are defined, and the rest of the layout magically does its thing. What Apple calls "co…

QML has exactly this -- and you write the constraints (arbitrary complex, almost) in Javascript :)
Post reply on HN