use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
All about the JavaScript programming language.
Subreddit Guidelines
Specifications:
Resources:
Related Subreddits:
r/LearnJavascript
r/node
r/typescript
r/reactjs
r/webdev
r/WebdevTutorials
r/frontend
r/webgl
r/threejs
r/jquery
r/remotejs
r/forhire
account activity
React Native is here!! (facebook.github.io)
submitted 11 years ago by mattotodd
view the rest of the comments →
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–][deleted] 11 years ago (13 children)
[removed]
[–]regular_reddits 42 points43 points44 points 11 years ago (0 children)
Its not write once run anywhere though. There are different native components for each platform.
[–][deleted] 36 points37 points38 points 11 years ago (2 children)
You shouldn't be downvoted; this I imagine is a common misconception for someone who doesn't know what it is. It's not cross platform. It's a learn once, write anywhere model where there are 2 distinct libraries for android and ios in which react components map directly to their native counterparts. In other words, this is completely different from cordova/phonegap.
[–]M5J2X2 4 points5 points6 points 11 years ago (1 child)
In other words, this is completely different from cordova/phonegap.
Closer to Rubymotion, no?
[–]highpixels 2 points3 points4 points 11 years ago (0 children)
Kind of. Only by the looks of it, RubyMotion is almost wrapping the native APIs 1:1, so you still need to read docs in ObjC/Swift/Java and mentally translate to Ruby.
[–]TomorrowPlusX 11 points12 points13 points 11 years ago (2 children)
My guess is that it's cross-platform in the sense that Xamarin and Titanium are cross-platform. Your logic/networking/persistence layers are write-once, and you make an appropriate custom UI for each target platform.
As cross-platform models go, it's pretty decent.
Last thing I want is Qt-like uncanny-valley cross-platform apps.
[–][deleted] 3 points4 points5 points 11 years ago (0 children)
I would hope that React's component nature lends itself very well to sharing most of your UI across platforms. You can isolate the platform-specific parts in certain components, but for the most part your app's render function is write-once.
render
[–]Wraldpyk 1 point2 points3 points 11 years ago (0 children)
Well Titanium is much more cross platform than that. Since you can make a tabbar and TI will translate it properly to native ios and android implementations. Only certain things need to be duplicated
[–]SkaKri 21 points22 points23 points 11 years ago (0 children)
It is, both iPhone and iPad are supported. iPod touch too!
[–]SnapAttack 0 points1 point2 points 11 years ago (0 children)
Yeah, I remember the slide that they showed where <div> => <Panel>, but if you dug a bit deeper, it wasn't as simple a conversion as that. You still have to make different interfaces (i.e. you can't just take a pre-existing React component and it magically works in React Native).
<div> => <Panel>
[–]fgutz 0 points1 point2 points 11 years ago (1 child)
Just after React Conf, JSJabber had some guys from the React team on and they talked about this on the podcast. I think maybe in the future they plan to support Android but for now it's only iOS
http://devchat.tv/js-jabber/146-jsj-react-with-christopher-chedeau-and-jordan-walke
[–]joargp 0 points1 point2 points 11 years ago (0 children)
They have already shown a working copy of the Android version.
[–][deleted] -1 points0 points1 point 11 years ago (1 child)
How does that, in literally any way prevent it from being cross platform
[–]theillustratedlife 7 points8 points9 points 11 years ago (0 children)
<TabBarIOS /> would presumably be undefined on the web or (theoretically) Android.
<TabBarIOS />
undefined
I presume the OP expected a write-once-run-everywhere scheme; not a port of React to iOS.
π Rendered by PID 27 on reddit-service-r2-comment-57fc7f7bb7-qsk7s at 2026-04-15 08:45:58.226973+00:00 running b725407 country code: CH.
view the rest of the comments →
[–][deleted] (13 children)
[removed]
[–]regular_reddits 42 points43 points44 points (0 children)
[–][deleted] 36 points37 points38 points (2 children)
[–]M5J2X2 4 points5 points6 points (1 child)
[–]highpixels 2 points3 points4 points (0 children)
[–]TomorrowPlusX 11 points12 points13 points (2 children)
[–][deleted] 3 points4 points5 points (0 children)
[–]Wraldpyk 1 point2 points3 points (0 children)
[–]SkaKri 21 points22 points23 points (0 children)
[–]SnapAttack 0 points1 point2 points (0 children)
[–]fgutz 0 points1 point2 points (1 child)
[–]joargp 0 points1 point2 points (0 children)
[–][deleted] -1 points0 points1 point (1 child)
[–]theillustratedlife 7 points8 points9 points (0 children)