Skip to main content

iOS 和 Android 应用

许多移动应用框架将 JavaScript / CSS / HTML5 概念与原生扩展和库混合在一起,以创建混合开发体验。精通 Web 技术的开发者现在可以构建在 iOS 和 Android 上运行的实际移动应用!

¥Many mobile app frameworks mix JavaScript / CSS / HTML5 concepts with native extensions and libraries to create a hybrid development experience. Developers well-versed in web technologies can now build actual mobile applications that run on iOS and Android!

该生态系统多次破坏了向后兼容性!

¥The ecosystem has broken backwards-compatibility many times!

iOS 和 Android 以及底层 JavaScript 框架会定期进行重大更改。这些演示在某个时间点针对模拟器/真实设备进行了测试。框架或操作系统的更改可能会导致演示无法运行。

¥iOS and Android, as well as the underlying JavaScript frameworks, make breaking changes regularly. The demos were tested against emulators / real devices at some point in time. A framework or OS change can render the demos inoperable.

iOS 演示需要 MacOS。Android 演示在 MacOS 上进行了测试。

¥MacOS is required for the iOS demos. The Android demos were tested on MacOS.

"JavaScript 引擎" 部分包括移动应用框架中使用的 JS 引擎的示例。SheetJS 库已在相关引擎中进行了测试,应该 "只是工作",但有一些注意事项。

¥The "JavaScript Engines" section includes samples for JS engines used in the mobile app frameworks. SheetJS libraries have been tested in the relevant engines and should "just work" with some caveats.

常用工具的演示包含在单独的页面中。每个演示部分都会提到测试日期和平台版本。

¥Demos for common tools are included in separate pages. Each demo section will mention test dates and platform versions.

推荐

React Native 非常受欢迎,是可以使用社区模块的新建项目的推荐选择。然而,其 "精益核心" 方法迫使开发者学习 iOS/Android 编程或使用社区模块来提供基本的应用功能。

¥React Native is extremely popular and is the recommended choice for greenfield projects that can use community modules. However, its "lean core" approach forces developers to learn iOS/Android programming or use community modules to provide basic app features.

最初的 Web View 框架是 PhoneGap/Cordova。现代框架构建在 Cordova 之上。Cordova 的受欢迎程度正在下降,但它拥有丰富的社区模块库可以解决许多问题。

¥The original Web View framework was PhoneGap/Cordova. The modern frameworks are built atop Cordova. Cordova is waning in popularity but it has a deep library of community modules to solve many problems.

在创建新应用之前,确定应用应支持哪些功能并研究社区模块非常重要。如果必须包含一些流行的功能模块,或者对于熟悉原生应用开发的团队来说,React Native 是显而易见的选择。

¥Before creating a new app, it is important to identify what features the app should support and investigate community modules. If there are popular modules for features that must be included, or for teams that are comfortable with native app development, React Native is the obvious choice.