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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

React Native: Initial Thoughts

101 点作者 kaishin大约 10 年前

18 条评论

Kesty大约 10 年前
When "The Bad" list start with the single word Javascript, it loses a lot of credibility for any unbiased judgment.
评论 #9289107 未加载
评论 #9289094 未加载
评论 #9289254 未加载
评论 #9289197 未加载
评论 #9289585 未加载
评论 #9289121 未加载
评论 #9289160 未加载
acdlite大约 10 年前
&gt; Flexbox. The authors missed the opportunity of offering a saner API and favored sticking to the official spec instead.<p>Flexbox <i>is</i> the saner API we&#x27;ve all be waiting for, in my opinion. I&#x27;m curious what the author&#x27;s objections to it are. That&#x27;s really my problem with the whole piece — statements like this are thrown out there without much justification or explanation.
评论 #9289342 未加载
评论 #9289375 未加载
bryanlarsen大约 10 年前
Component-based file structure is firmly in the &quot;good&quot; column for me. It makes small components much more feasible.<p>If you&#x27;re forced to split out your view, your template, your stylesheet, your controller, your model, your business logic, et cetera into separate files you are forced to keep components large.<p>However, if you have a component-based structure, whenever you notice a very small piece of common functionality it becomes trivial to create a new component for that functionality. You end up with a very large number of very small, very easy to understand components, with clear areas of responsibility.
评论 #9289354 未加载
jk5_大约 10 年前
&gt; Flexbox. The authors missed the opportunity of offering a saner API and favored sticking to the official spec instead.<p>This is located in « The Meh » section. IMHO, it should be in the « The Good ». Using the official spec instead of reinventing the wheel is always a good move.
评论 #9289353 未加载
评论 #9289177 未加载
评论 #9289272 未加载
aboodman大约 10 年前
&quot;Component-based file structure. Handling styles, view hierarchy, and business logic all in one file is a step backwards. Poor style reusability is one direct consequence of this approach.&quot;<p>If only there was some way to pull out a hunk of code so that it could be reused. Hm. Somebody should invent that.
pjmlp大约 10 年前
For me QML&#x2F;C++ (or other C++ UIs) and Xamarin make much more sense for native mobile coders.<p>- Better native integration<p>- Integration with the SDK tooling<p>- Support of all three major mobile platforms<p>- Performance<p>As soon as I saw what React Native offers, it was meh for me.
评论 #9289850 未加载
tariqr大约 10 年前
&quot;StyleSheet is not CSS. You will be quickly disappointed if you adventure outside the few CSS-inspired properties that React Native ships with.&quot; &lt; I can see how that can be quite annoying, everytime you want to use a property, you&#x27;d have to go back and check if RN supports it.<p>Maybe there will be stronger overlap in the long run.
评论 #9289134 未加载
ksherlock大约 10 年前
I played around with it a bit over the weekend. You can call it native, but at the same time, it&#x27;s not completely native. For example, there is no UITableView support. That&#x27;s one of the most common ways to present data. Hell, one of the first things I tried to do. (There is a bug report. They tried to support it but the code was ugly and didn&#x27;t really play well with react-native so it was dropped).<p>You can create a ListView and the performance (and feel) are great, but it&#x27;s not a UITableView. You can draw a chevron and make it kind of look like a UITableView but if you have to manually re-create the native UI, it&#x27;s not really native anymore, is it?<p>It certainly is slick to get instantaneous feedback when you edit your javascript file, though.
评论 #9290972 未加载
评论 #9290338 未加载
vjeux大约 10 年前
&gt; Styling nested view controllers is a pain. You are taken back to the root view controller after each refresh.<p>It&#x27;s so interesting how once you get used to instant feedback loop, anything that&#x27;s longer is perceived as a pain. We want to find a solution for this though :)
legacy2013大约 10 年前
Why is Chrome Developer Tools meh?<p>It&#x27;s something people are familiar with and has a full debugging suite
评论 #9289333 未加载
bkurtz13大约 10 年前
OP mentions you can enable auto refresh, instead of having to Command + R every time I assume. I couldn&#x27;t find that info anywhere, does anyone know how to do that? I&#x27;m really used to that workflow now with Figwheel + Om.
评论 #9289443 未加载
评论 #9289434 未加载
agmcleod大约 10 年前
I think these are fair concerns, but it also sounds like this person comes from a more iOS native development background. Why not stick with that? I like the idea of react native as i use react more and more in the browser, and I enjoy the workflow.
评论 #9289164 未加载
badlogic大约 10 年前
While react-native isn&#x27;t for me, some of the features are really nice. Hotswap for mobile development is definitely a very nice thing to have. I do wonder how that handles app state. Is only the UI reloaded or all of the code?
评论 #9289128 未加载
UUMMUU大约 10 年前
He knows they just released it right? A good number of &quot;The Bad&quot; should probably be seen as coming soon. Probably could&#x27;ve named those &quot;will be better when...&quot; Especially Stylesheet and Swift support.
tel大约 10 年前
Is there an FRP library in iOS? The author states that React &quot;feels superior&quot; than FRP, so I&#x27;m curious what the comparison was.
评论 #9289330 未加载
ExpiredLink大约 10 年前
&gt; <i>Immutable user interface. You no longer have to track state in both the model and the view; the latter is a function of the former. As soon as the model changes, React Native re-renders a virtual tree of the view hierarchy, then applies the delta to the native views. </i><p>The meaning of &#x27;immutable&#x27; must have changed lately.
评论 #9290416 未加载
dheera大约 10 年前
Has anyone compared React Native to Appcelerator Titanium?
评论 #9289407 未加载
0x0大约 10 年前
Any further thoughts on the apparently controversial PATENTS file? <a href="https:&#x2F;&#x2F;github.com&#x2F;facebook&#x2F;react-native&#x2F;blob&#x2F;master&#x2F;PATENTS" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;facebook&#x2F;react-native&#x2F;blob&#x2F;master&#x2F;PATENTS</a>
评论 #9289123 未加载
评论 #9289512 未加载
评论 #9290120 未加载