NativeScript

NativeScript / NativeScript

NativeScript 是一个用 TypeScript 编写原生移动应用的开源框架,支持 Angular、Vue、React 等前端技术栈,并直接调用 iOS 和 Android 原生 UI 与 API。

TypeScript 桌面/移动应用 开发工具 跨平台开发 原生应用 移动开发框架 前端框架集成

为什么值得看

编辑点评

它让 Web 开发者能用熟悉的框架构建真正原生的移动应用,性能优于 WebView 方案,且没有桥接层开销。支持 SwiftUI、Jetpack Compose 等现代 UI,生态较活跃。适合已有前端团队想进入原生开发、或需要高性能原生体验的项目。但社区规模和文档丰富度相比 Flutter/React Native 稍弱,调试复杂度也较高。

Star 趋势

近 7 日
  • Star 总数25,701
  • 今日新增+2
  • 7 日增速+100%
  • Fork1,745

同类项目

同场景 · 桌面/移动应用 / 开发工具

项目文档

来自 GitHub README · main 分支

NativeScript

FOSSA Status https://good-labs.github.io/greater-good-affirmation/assets/images/badge.svg

NativeScript empowers you to access native APIs from JavaScript directly. Currently iOS, Android, and visionOS runtimes are provided for rich mobile development across a variety of diverse use cases.

FOSSA Status

Quick Start

To get started with NativeScript, follow these steps:

  1. Install the NativeScript CLI globally: bash npm install -g nativescript

  2. Create a new project: bash ns create my-app

  3. Navigate into your project directory: bash cd my-app

  4. Run your app on an emulator or device: bash ns run android or bash ns run ios

Contribute

  1. Setup your local development environment

  2. Clone to contribute:

$ git clone https://github.com/NativeScript/NativeScript.git
$ cd NativeScript

# setup workspace for development
$ npm run setup

# list all available commands to run
$ npm start

We love you and your pull requests 🤗. Please follow our contributing guide and see our code of governance to become as involved as you want to be.

@nativescript/*

Other source repos

Outside the source centralized in this repo, NativeScript consists of a few other source repos. Here are the major ones:

  • iOS and visionOS Runtime Empowers JavaScript code to be executed on iOS and visionOS devices written in a mix of C++, Objective-C, and Swift.
  • Android Runtime Empowers JavaScript code to be executed on Android devices written in a mix of C++, Java and Kotlin.
  • CLI Command-line interface empowering you to create, build, and run apps using NativeScript.
  • Docs Documentation available at http://docs.nativescript.org/ written in Markdown.
  • Plugins Various TSC managed plugins. Also a good reference is the plugin marketplace with several additional plugins.
  • Firebase Modular Firebase 🔥 implementation for supported platforms.
  • ML Kit Google's ML Kit SDKs for supported platforms.
  • Payments In-App Purchase, Subscriptions, Google Pay and Apple Pay.
  • Artwork Want to use our logo or colors? Feel free to use any of our ready-to-use media material.

Copyright OpenJS Foundation and NativeScript contributors. All rights reserved. The OpenJS Foundation has registered trademarks and uses trademarks. For a list of trademarks of the OpenJS Foundation, please see our Trademark Policy and Trademark List. Trademarks and logos not indicated on the list of OpenJS Foundation trademarks are trademarks™ or registered® trademarks of their respective holders. Use of them does not imply any affiliation with or endorsement by them.

The OpenJS Foundation | Terms of Use | Privacy Policy | OpenJS Foundation Bylaws | Trademark Policy | Trademark List | Cookie Policy

Made with ❤️

文档抓取自 GitHub 仓库 README,版权归原作者所有;已过滤徽章等噪音并经安全消毒后展示。