TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

React Native for OS X

637 pointsby BafSabout 9 years ago

32 comments

xenadu02about 9 years ago
I sympathize with cross-platform development woes (we have this problem too) but I can&#x27;t say I&#x27;ve ever been impressed with a cross-platform app developed using React Native (or anything else cross-platform).<p>A React Native app isn&#x27;t horrible or bad (nothing like Java Swing) but it also isn&#x27;t delightful to use. Technically you have animations and things like the cross-platform navigator. In reality, you have a lot of performance issues and strange incompatibilities due to attempting to execute animation keyframes on the JS thread (or replace the system-provided navigation bar in the case of Navigator). It isn&#x27;t terribly easy on battery life either.<p>I&#x27;d rather write my sync and offline storage system in JS and share that across platforms while leaving the entire view layer as native code. That stuff is far harder to get right for non-trivial apps, it just isn&#x27;t sexy and most web devs ignore it completely because hey - the web browser is always online!<p>I&#x27;m biased though. Our customers download 5-10 GB projects with millions of objects in them because when you&#x27;re building a hospital the MRI room is a literal faraday cage. No such thing as internet access in there and telling the user they can&#x27;t pull up plans or engineering specs because they&#x27;re offline is a non-starter.
评论 #11388222 未加载
评论 #11387024 未加载
评论 #11389161 未加载
评论 #11387653 未加载
评论 #11387132 未加载
评论 #11387163 未加载
评论 #11390079 未加载
评论 #11387838 未加载
评论 #11388405 未加载
评论 #11387170 未加载
评论 #11387147 未加载
评论 #11392857 未加载
评论 #11388020 未加载
评论 #11394495 未加载
评论 #11387014 未加载
dean_mcphersonabout 9 years ago
Here&#x27;s a bit about my experience with React Native.<p>I&#x27;ve been using React Native on iOS in production since last November for <a href="http:&#x2F;&#x2F;townske.com&#x2F;app" rel="nofollow">http:&#x2F;&#x2F;townske.com&#x2F;app</a>,<p>Over that period, I did hit some performance issues, but the vast majority of those were implementation flaws (i.e. my fault), not framework flaws. Real user feedback has been overwhelmingly positive, including being featured in the app store multiple times.<p>I just launched another app for iOS and Android last weekend (<a href="https:&#x2F;&#x2F;curbitapp.com" rel="nofollow">https:&#x2F;&#x2F;curbitapp.com</a>) that was built with React Native in a few weeks, and shares about 80% of the codebase. I haven&#x27;t spent any time optimising these apps for performance, other than following standard react best practices and see sufficient performance on both iOS and Android.<p>For someone who has a web background, React Native is a no brainer. 60fps native UI is generally attainable, you can use the exact same tooling (good dev tools, hot reloading), and you have the ability to pick up a large chunk of your code and put it on Android, or web, or now potentially OSX.
评论 #11387574 未加载
评论 #11388011 未加载
评论 #11387867 未加载
PeCaNabout 9 years ago
As someone who quite likes Qt, why should I prefer this over Qt5+QML? This whole React Native thing just feels like &quot;let&#x27;s reinvent Qt but slower and much less mature&quot;.<p>Note: I really don&#x27;t mean this in an inflammatory way; it just feels like people are rediscovering the cool stuff about Qt and reimplementing it but worse.
评论 #11386810 未加载
评论 #11387435 未加载
评论 #11386828 未加载
justsaysmthngabout 9 years ago
Maybe it&#x27;s just me, but as an C++, Objective-C and Swift programmer, React Native doesn&#x27;t really appeal to me that much.<p>At least on the iOS and Mac, I don&#x27;t really want to give up on Swift in favor of Javascript.<p>I like React on the web. In my view, conceptually it&#x27;s the most interesting framework out there and that&#x27;s saying a lot, given the jungle of JS frameworks populating the web.<p>But I also like UIKit and the other native frameworks, now that I&#x27;ve spent so much time learning to use them right.<p>I&#x27;ll give it a try anyway, I&#x27;m sure there&#x27;s something to like about it and probably something to learn too..
评论 #11387341 未加载
评论 #11387410 未加载
girvoabout 9 years ago
I&#x27;m in love with React Native. We&#x27;re delivering the Android &amp; iOS application we&#x27;ve been working on for the last three months this week, and it&#x27;s been a phenomenal experience. Far more stable, and far more powerful than I expected going in to it; combined with Redux (though react-redux needed npm 3 and some tweaks to get it working due to name collisions under the packager) we built out a real cross platform app faster than I ever though possible.<p>Applying that to native desktop application development has me so excited its not even funny!
评论 #11386742 未加载
评论 #11386731 未加载
评论 #11386735 未加载
评论 #11386748 未加载
swaroopabout 9 years ago
Reminds me of &quot;Facebook will eat everything with React Native&quot; - <a href="https:&#x2F;&#x2F;www.quora.com&#x2F;What-is-mobile-development-going-to-look-like-in-2-5-years&#x2F;answer&#x2F;Jeff-Meyerson?srid=pvSi" rel="nofollow">https:&#x2F;&#x2F;www.quora.com&#x2F;What-is-mobile-development-going-to-lo...</a>
评论 #11388082 未加载
lewisl9029about 9 years ago
Anyone aware of anything similar for Universal Windows Platform? That would seem like another logical extension to the existing Android&#x2F;iOS targets.
评论 #11387755 未加载
评论 #11386815 未加载
joramsabout 9 years ago
I&#x27;m a bit confused by this. I thought the entire point of making things &quot;native&quot; was that the app would feel like it belongs on the platform. Native interfaces have certain details that might not be immediately noticeable, but that massively improve the experience.<p>This... does not. The screenshots look like webapps that try hard to look native, despite actually being native.<p>The text in the top-left textbox in the first and second screenshots looks weird, because its baseline is too high. The box around it in the second screenshot has weird corners, etc.<p>Now, I&#x27;m not an OSX user, but with all the talk about OSX having the most polished interface, I highly doubt weird things like this are common.
评论 #11389222 未加载
apiabout 9 years ago
Oh yeah... once we have Windows and Linux we will finally have a single paradigm for GUIs. It&#x27;s enough to make me actually love Facebook.
评论 #11386970 未加载
pbreitabout 9 years ago
Did &quot;Building MacOS apps with JavaScript&quot; ever get any traction?<p><a href="http:&#x2F;&#x2F;tylergaw.com&#x2F;articles&#x2F;building-osx-apps-with-js" rel="nofollow">http:&#x2F;&#x2F;tylergaw.com&#x2F;articles&#x2F;building-osx-apps-with-js</a>
inglorabout 9 years ago
And - for windows <a href="https:&#x2F;&#x2F;github.com&#x2F;joemcbride&#x2F;react-native-wpf" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;joemcbride&#x2F;react-native-wpf</a>
justncase80about 9 years ago
Why would you use this instead of Electron?
评论 #11386817 未加载
评论 #11387374 未加载
hellofunkabout 9 years ago
There seems to be some common misconceptions about the technology behind both React and FRP, and unfortunately this is compounded by the fact that FB called it &quot;React&quot; when it is not technically using reactive technology or functional reactive programming. I&#x27;d love to hear from any experts on the matter what the key technical distinctions are between React and FRP and where Qt&#x27;s QML, which is declarative and reactive, fits into this picture in comparison. I&#x27;ve recently skimmed several papers on general reactive programming, and many of them cite QML in their examples, while none of them mentioned React -- perhaps because React is newer. In any case, these are interesting paradigms that could use some dumbed-down explanations.
diegorbaqueroabout 9 years ago
What!? This is a thing :O And I didn&#x27;t know. Great work! over 5.5k commits already.
评论 #11386746 未加载
MBCookabout 9 years ago
Oh good, another was to half-ass port things to Mac. Lovely. There&#x27;s a reason people like native interfaces.<p>&quot;No it&#x27;s not like Java this time!&quot; &quot;It&#x27;s not like Carbon!&quot; &quot;It&#x27;s not Flash!&quot; &quot;Don&#x27;t worry, it&#x27;s no X11!&quot;<p>If you care about the platform, go native. Learn the rules and look and feel. If you don&#x27;t care that much? Maybe you should reconsider the port. You can&#x27;t &quot;click this checkbox for OS X&quot;, it doesn&#x27;t feel right.
评论 #11386904 未加载
评论 #11388311 未加载
sigzeroabout 9 years ago
I am less interested that is &quot;looks&quot; like everything else as long as it &quot;works&quot; like everything else and does what I want it to do.
elchiefabout 9 years ago
up next: React Native ncurses
评论 #11387300 未加载
评论 #11387305 未加载
andrewshatnyyabout 9 years ago
Last time I checked &quot;native&quot; didn&#x27;t have access to camera. Not sureif...
评论 #11387461 未加载
kevindeasisabout 9 years ago
When you think about it, using react with electron is kinda like react-native for cross-browsers. It&#x27;ll be hilarious when someone writes a wrapper that let&#x27;s you do cross browser with react<p>Let me know if you guys know of one
desireco42about 9 years ago
Really loving simplicity of react on a desktop. It is possible to do with electron, this is more versatile.<p>I have a sense that there should be more versatile components for desktop, I guess once it takes off, there will be those.<p>Thank you.
elwellabout 9 years ago
Interesting to have the same chronology of ecosystem hacks that iOS had: Fully Native --&gt; Wrap JS app in WebView [0] --&gt; React Native<p>[0] - E.g., PhoneGap apps on iOS &amp; Slack app on OSX
评论 #11386816 未加载
nickyyoabout 9 years ago
At the end of the day.. The customer doesn&#x27;t care about your code... they just want a smooth running App, so, here React Native wins.
评论 #11392082 未加载
jimothyhalpert7about 9 years ago
What are your experiences using RN with Angular? It&#x27;s interesting to see that the Angular team are in some way endorsing RN.
travjonesabout 9 years ago
This is very cool. I admire all of the hard work from the react team and open source contributors that make this tech possible. &lt;3
xueshandemaoabout 9 years ago
I&#x27;m learning electron. But, React Native launch the Desktop.May i give up it?
mrdrozdovabout 9 years ago
Does this mean Facebook is building a native desktop app?
评论 #11386794 未加载
sunasraabout 9 years ago
Awesome - Might be replacement of Electron
评论 #11387554 未加载
kinabout 9 years ago
This is pretty awesome. They&#x27;re really proving that you can learn once build anywhere.<p>For OS X though if I were to get into a project I&#x27;d go the Electron route.
alex_dufabout 9 years ago
So we&#x27;re back to Mozilla XUL ?
striletskyyabout 9 years ago
Looking forward to it in action.
chinchangabout 9 years ago
If this still requires me to install xcode...then I would rather go with ReactJS + electron!
jonesb6about 9 years ago
I don&#x27;t use or develop for OS X, but I know it has a reputation for some pretty bad desktop applications. Do people think React Native might lower the barrier enough to improve on this problem? Thinking of getting a Mac soon and am curious.
评论 #11386751 未加载
评论 #11386753 未加载
评论 #11386766 未加载
评论 #11386775 未加载
评论 #11387150 未加载