add-native

仓库创建 2026年1月22日最近提交 4 小时前SkillHot 收录 20 天前
▸ 精选理由

简化对摄像头、文件、定位等原生 API 的调用并保证类型安全。

▸ 风险提示

会生成并接入原生模块,可能要求本地构建或额外原生依赖与权限。

这个 Skill 做什么

为应用生成原生设备能力的类型化封装文件供屏幕调用。

为 Power Apps 移动应用生成一份 typed wrapper,让屏幕能通过统一接口调用相机、图片/文档选择、扫码、签名、PDF、后台定位等原生能力,而不用直接触碰 Expo 模块。适合要把原生设备能力封装起来、保持 contract 清晰并与 Dataverse File/Image 或内部实现 helpers 对接时使用,便于维护和复用。

▸ 展开 SKILL.md 英文原文

Public entry point for native device capabilities and native controls — camera, image picker, barcode/QR scanner, document picker, file picker, secure storage, file system, sharing, PDF generation/viewing, pen/signature capture, background GPS/geolocation tracking, or supported local file workflows — in a Power Apps mobile app. Also owns routing to internal camera/PDF/pen/geolocation implementation helpers and the guidance boundary between native wrappers and Dataverse File/Image host controls.

开发编程原生能力设备API封装通用
566
Stars
116
Forks
40
仓库内 Skill
+152
7 日增星
安装 / 使用
给你的 Agent 一句话(通用)
帮我安装这个 skill:https://raw.githubusercontent.com/microsoft/power-platform-skills/main/plugins/mobile-apps/skills/add-native/SKILL.md
或 curl 直取 SKILL.md
curl -fsSL "https://raw.githubusercontent.com/microsoft/power-platform-skills/main/plugins/mobile-apps/skills/add-native/SKILL.md"
SKILL.MD 节选查看完整文件 ↗
**📋 Shared instructions: [shared-instructions.md](${CLAUDE_SKILL_DIR}/../../shared/shared-instructions.md)** — read first.

# Add Native Capability

Generate a one-file typed wrapper under `src/native/` for a native device capability that the upstream template already ships. Screens import the wrapper instead of touching Expo modules directly, so the discriminated-union result contract stays consistent across the app.

## Hard rules — do NOT cross these lines

1. **Never run `npx expo install`, `npm install`, or `yarn add` for a native module.** The set of native modules in `package.json` is fixed by the upstream template. Adding a new one breaks the rewrap pipeline (the customer's binary i
via SKILL·HOT · 数据来自 GitHub 公开信息 · 原文版权归作者所有