add-native
简化对摄像头、文件、定位等原生 API 的调用并保证类型安全。
会生成并接入原生模块,可能要求本地构建或额外原生依赖与权限。
为应用生成原生设备能力的类型化封装文件供屏幕调用。
为 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.
帮我安装这个 skill:https://raw.githubusercontent.com/microsoft/power-platform-skills/main/plugins/mobile-apps/skills/add-native/SKILL.mdcurl -fsSL "https://raw.githubusercontent.com/microsoft/power-platform-skills/main/plugins/mobile-apps/skills/add-native/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