Live data from Hacker News

Use ReactJS to Build Native Apps

twitter.com

141–150 of 175 posts

Re: Use ReactJS to Build Native Apps

#143
post #57

"Learn Once Write Everywhere" I this this is a great mentality over the classic write once run everywhere approach. We're currently building a native cross-platform desktop email client in React + Flux on Atom Shell. As Nilas thinks about mobile and other platforms it's clear that the interaction design and information architecture are radically different. While some code should be re-used most shouldn't. Having a re…

> "Learn Once Write Everywhere"

I can't help but think about that other chestnut, "A determined programmer can write Fortran in any language."

Of course it makes sense to apply a pattern that you know worked great in the past. The tough part is deciding when it's worth trying something else.

Re: Use ReactJS to Build Native Apps

#144
post #98

Seasoned Appcelerator’s Titanium Mobile SDK dev here. Looks like that a lot of people here is comparing this announcement from the react team to the Titanium Mobile SDK. I’d like to give some info to shed some light on the differences, and probably anticipate the challenges they have to (or had to) solve. ## Architecture Both Titanium SDK and this Native React thing do have a JavaScript runtime behind the curtains. B…

Hyperloop is being used other internal APIs as well.

Re: Use ReactJS to Build Native Apps

#145
post #77

Earlier quoted context omitted.

There will be more detail tomorrow, but at a high level: * JS engine on a background thread * Communicates via batched, async messaging protocol to a native (objc or android) server running on the main thread (basically create_view(), update_view(), destroy_view(), on_event() etc) * Plug-in for React that speaks that protocol * Tools to make cross-platform dev a bit easier (standard text component, cross-platform fle…

You guys better be filming the talks! :)

You can see this particular keynote presentation here: https://www.youtube.com/watch?v=KVZ-P-ZI6W4

Re: Use ReactJS to Build Native Apps

#146
post #138

Earlier quoted context omitted.

but for iOS I need to develop it on an Apple machine correct?

Yes, you need a Mac in order to run the simulator or build to a device.

Okay I will buy a Mac...just so I can develop for both Android and iOS using Javascript.

Re: Use ReactJS to Build Native Apps

#149
post #98

Seasoned Appcelerator’s Titanium Mobile SDK dev here. Looks like that a lot of people here is comparing this announcement from the react team to the Titanium Mobile SDK. I’d like to give some info to shed some light on the differences, and probably anticipate the challenges they have to (or had to) solve. ## Architecture Both Titanium SDK and this Native React thing do have a JavaScript runtime behind the curtains. B…

Titanium comparisons are some of my top thoughts too. 1) How do they access the native API? If there's no abstraction, just a translation, then the apps must be different for each platform. If there is an abstraction, then how much of the native platform do they cover? It can't be 100%, and the native APIs change with every OS version. Basic calls are easy, integrating things like device keychain, intents, and servic…

Exactly. As Haynie stated on tw, it’s sad that they didn’t included them in the design process. They already solved a lot of challenges.

BTW, did you have a look at titaniumifier? (https://github.com/smclab/titaniumifier) it’s a tool we built to port node packages to titanium (a declination of browserify, actually).

Re: Use ReactJS to Build Native Apps

#150
post #93

Earlier quoted context omitted.

You can do that with some funny inline-block wizardy on Vanilla CSS by the way. I don’t currently know if flex-box helps here. I think not.

Source? AFAIK if you want your border, padding and margin respected, there is no way to do the above in vanilla CSS. Which is why css-flexbox was proposed.

Here it is (it’s border-{top, bottom} based, not inline-block) http://www.mademyday.de/css-height-equals-width-with-pure-cs...

The issue is that it’s only width-constrained.

Post reply on HN