更新时间:2022-12-21 09:35:36
使用 React Native 的本机iOS应用程式。
优点:
缺点:
React Native for Android是在2015年9月14日开源的。我还没有使用它,但这里是我迄今为止学到的。 更新10/21/16: Windows通用平台的React Native已于今年早些时候公布。这意味着你现在可以使用React Native为Windows桌面,Windows手机甚至Xbox!构建应用程序。
React Native不是 写一次,运行在任何地方心态。他们采取学习一次,写任何范式。 iOS是一个与Android非常不同的平台,所以真诚的努力需要投入到任一平台的设计。原生API也会有所不同。
因此,你最终会为本地组件和API重新编写代码。但是,您的许多应用程序逻辑可以重用。实际上,React-Native是组织起来的,因此您可以将Android和iOS应用程序保存在同一个存储库中,以便在可能时重复使用相同的代码。我认为它是辉煌,但只有时间会告诉。 根据他们,它的工作到目前为止。
顺便说一下,Facebook上的一个小组使用React Native构建了一个iOS应用,然后在三个月内使用87%的相同代码库翻转并构建Android版本。
为iOS开发我的应用程序有哪些要求? / em>
目前,您需要一个Mac和XCode才能部署。目前有很少的方法。根据此问题和Slack上的对话,一旦部署,您就可以开发从Windows或Linux机器。 Facebook还正在开源开发所有的 Nuclide 软件包,根据他们在F8的演示,将包括无需XCode打包和构建的工具。
总体来说,React Native已经是一个辉煌的经验。这是,在我看来,头和肩膀以上任何东西当前在那里。社区的感觉也很积极。我只能假设它会随着时间而变得更好。
I've been playing for a while with phonegap, did some tests on my android...
It's pretty nice.
My questions are:
What is the best(your favorite) framework to develop native mobile applications with web client side(html\javascript\css)?
How easy is to build and maintain those applications in multi-platforms(iOS\Android\BlackBerry) parallel? Does it has many exceptions between different platforms(iOS\Android\BlackBerry) ?
What are the requirements to develop my app for iOS ? should I need a special IDE with special SDK ? I must have mac ?
Many thanks :]
We're currently building a native iOS application using React Native. It would be a shame if it wasn't included here.
Pros:
Cons:
How easy is to build and maintain those applications in multi-platforms?
React Native for Android was open-sourced on September 14th, 2015. I haven't used it yet, but here's what I've been able to learn so far. Update 10/21/16: React Native for the Windows Universal Platform was announced earlier this year. That means you can now use React Native to build apps for Windows desktop, Windows phones, and even Xbox!
React Native is not intended to be a write once, run anywhere mentality. They adopt a learn once, write anywhere paradigm instead. iOS is a very different platform than Android, so sincere effort needs to be put into the design for either platform. The native APIs will also be different.
So, you will end up re-writing code for native components and APIs. However, much of your application logic can be re-used. In fact, React-Native is organized so that you can keep both your Android and iOS applications in the same repository, so that you can re-use the same code when possible. I think it's brilliant, but only time will tell. According to them, it works well so far.
By the way, a team at Facebook built an iOS app using React Native, then turned around and built the Android version in three months using 87% of the same code base.
What are the requirements to develop my app for iOS?
Currently, you need a Mac and XCode in order to deploy. Currently there are very few ways around this. According to this issue and from conversations on Slack, once deployed, you can actually develop from a Windows or Linux machine. Facebook is also working on open-sourcing all of their Nuclide packages, which, according to their presentation at F8, will include tools to package and build without XCode.
Overall, React Native has been a stellar experience. It is, in my opinion, head and shoulders above anything else currently out there. The feeling within the community is also very positive. I can only assume it will get better with time.