TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Ask HN: Why was React Native created?

6 点作者 berzniz大约 10 年前
Was React Native created for making it easy for JS devs to develop for iOS? or for iOS devs to build apps more easily? Is it a path to a future cross platform native apps?<p>I&#x27;m both an iOS and web developer.<p>I fully understand what React (for the web) is trying to solve: UI&#x27;s are hard and treating them as state machine makes it easier to keep the UI consist ant. The web version is also easily debuggable in the same tools you debug your regular JS code.<p>React Native is odd. It&#x27;s not written in Swift&#x2F;Obj-C and is not debuggable using the same tools we use XCode (and debugging is a big part of what we do to optimize mobile apps).<p>What are your thoughts?

4 条评论

bluerail大约 10 年前
I think it&#x27;s a mixture of both. Getting web devs to dip their toes into mobile development and vice-versa. I really don&#x27;t see a reason for someone not to pick-up something that will give the best(not-exactly) of both worlds..<p>Think of the potential if a single language can be used to build apps in multiple platforms - web, mobile, desktop(node-webkit).. I think the language that currently satisfies this is JS and React-native is yet another extension to it.
cat9大约 10 年前
It&#x27;s not a replacement for Swift&#x2F;Obj-C, it&#x27;s a replacement for PhoneGap.<p>Android support is due Soon(TM). It just launched with was ready.<p><a href="https://github.com/facebook/react-native/pull/271" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;facebook&#x2F;react-native&#x2F;pull&#x2F;271</a>
ksherlock大约 10 年前
39% of React Native is Objective C. (Or Java, eventually, for Android). Beyond simple things (or for better performance) you&#x27;ll still need and want native views&#x2F;modules in Swift&#x2F;Objective C.
serve_yay大约 10 年前
I recommend their intro videos.