Expo 原生模块开发

原名:expo-module

使用 Expo Modules API 编写 Swift、Kotlin 和 TypeScript 原生模块与视图。

中文 Skills 技能说明

适合 React Native 需要调用平台原生能力或封装现有 SDK。技能会先定义跨端 API、生命周期和错误边界,再实现自动链接与配置插件;接入第三方 SDK 前必须核验授权、隐私和平台政策,原生代码要在对应设备测试。

上游能力依据

上游原始适用说明:Framework (OSS). Guide for creating and writing Expo native modules and views using the Expo Modules API (Swift, Kotlin, TypeScript). Covers module definition DSL, native views, shared objects, config plugins, lifecycle hooks, autolinking, and type system. Use when building or modifying native modules for Expo. Not for migrating an existing Swift module from the definition DSL to the Expo Modules API 2.0 macros; use expo-migrate-module (from the expo-experiments plugin) for that.

上游 SKILL.md 主要章节(保留原文标题):

使用边界

先读取项目约定、依赖版本和现有测试,再提出最小改动。写文件、运行脚本、提交代码或发布前应检查差异并保留回退路径。

作者、翻译与许可证

原作者
650 Industries, Inc.(Expo)与 expo/skills contributors
中文翻译
CEOFans翻译
许可证
MIT
上游来源
https://github.com/expo/skills/tree/50f59f837ddb7595d8c6683c693207e265d58c43/plugins/expo/skills/expo-module

适用范围

平台:linux、macos、windows;标签:移动应用开发、Expo 原生模块开发

安全提示

基础静态扫描不等于绝对安全。技能可能调用命令、浏览器、云服务或本地文件,请在最小权限环境中使用,高风险操作必须人工确认。

如发现侵权、许可证或安全问题,可在本页前台提交投诉,管理员复核后可立即下架。